Package io.temporal.internal.common
Class InternalUtils
- java.lang.Object
-
- io.temporal.internal.common.InternalUtils
-
public final class InternalUtils extends java.lang.ObjectUtility functions shared by the implementation code.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTEMPORAL_RESERVED_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckMethodName(io.nexusrpc.handler.ServiceImplInstance instance)static voidcheckMethodName(POJOActivityMethodMetadata methodMetadata)static voidcheckMethodName(POJOWorkflowMethodMetadata methodMetadata)Check the method name for reserved prefixes or names.static NexusWorkflowStartercreateNexusBoundStub(WorkflowStub stub, NexusStartWorkflowRequest request)Creates a new stub that is bound to the same workflow as the given stub, but with the Nexus callback URL and headers set.static io.temporal.api.taskqueue.v1.TaskQueuecreateNormalTaskQueue(java.lang.String taskQueueName)static io.temporal.api.taskqueue.v1.TaskQueuecreateStickyTaskQueue(java.lang.String stickyTaskQueueName, java.lang.String normalTaskQueueName)static java.lang.ObjectgetValueOrDefault(java.lang.Object value, java.lang.Class<?> valueClass)
-
-
-
Method Detail
-
createStickyTaskQueue
public static io.temporal.api.taskqueue.v1.TaskQueue createStickyTaskQueue(java.lang.String stickyTaskQueueName, java.lang.String normalTaskQueueName)
-
createNormalTaskQueue
public static io.temporal.api.taskqueue.v1.TaskQueue createNormalTaskQueue(java.lang.String taskQueueName)
-
getValueOrDefault
public static java.lang.Object getValueOrDefault(java.lang.Object value, java.lang.Class<?> valueClass)
-
createNexusBoundStub
public static NexusWorkflowStarter createNexusBoundStub(WorkflowStub stub, NexusStartWorkflowRequest request)
Creates a new stub that is bound to the same workflow as the given stub, but with the Nexus callback URL and headers set.- Parameters:
stub- the stub to create a new stub fromrequest- the request containing the Nexus callback URL and headers- Returns:
- a new stub bound to the same workflow as the given stub, but with the Nexus callback URL and headers set
-
checkMethodName
public static void checkMethodName(POJOWorkflowMethodMetadata methodMetadata)
Check the method name for reserved prefixes or names.
-
checkMethodName
public static void checkMethodName(POJOActivityMethodMetadata methodMetadata)
-
checkMethodName
public static void checkMethodName(io.nexusrpc.handler.ServiceImplInstance instance)
-
-