Class InternalUtils


  • public final class InternalUtils
    extends java.lang.Object
    Utility functions shared by the implementation code.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static WorkflowStub 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.
      static io.temporal.api.taskqueue.v1.TaskQueue createNormalTaskQueue​(java.lang.String taskQueueName)  
      static io.temporal.api.taskqueue.v1.TaskQueue createStickyTaskQueue​(java.lang.String stickyTaskQueueName, java.lang.String normalTaskQueueName)  
      static java.lang.Object getValueOrDefault​(java.lang.Object value, java.lang.Class<?> valueClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 WorkflowStub 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 from
        request - 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