Class InternalUtils
java.lang.Object
io.temporal.internal.common.InternalUtils
Utility functions shared by the implementation code.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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(String taskQueueName) static io.temporal.api.taskqueue.v1.TaskQueuecreateStickyTaskQueue(String stickyTaskQueueName, String normalTaskQueueName) static ObjectgetValueOrDefault(Object value, Class<?> valueClass)
-
Field Details
-
TEMPORAL_RESERVED_PREFIX
-
-
Method Details
-
createStickyTaskQueue
-
createNormalTaskQueue
-
getValueOrDefault
-
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
Check the method name for reserved prefixes or names. -
checkMethodName
-
checkMethodName
public static void checkMethodName(io.nexusrpc.handler.ServiceImplInstance instance)
-