Interface WorkflowInboundCallsInterceptor

    • Method Detail

      • init

        void init​(WorkflowOutboundCallsInterceptor outboundCalls)
        Called when workflow class is instantiated.
        Parameters:
        outboundCalls - interceptor for calls that workflow makes to the SDK
      • newWorkflowMethodThread

        java.lang.Object newWorkflowMethodThread​(java.lang.Runnable runnable,
                                                 @Nullable
                                                 java.lang.String name)
        Intercepts creation of the workflow main method thread
        Parameters:
        runnable - thread function to run
        name - name of the thread, optional
        Returns:
        created workflow thread. Should be treated as a pass-through object that shouldn't be manipulated in any way by the interceptor code.
      • newCallbackThread

        java.lang.Object newCallbackThread​(java.lang.Runnable runnable,
                                           @Nullable
                                           java.lang.String name)
        Intercepts creation of a workflow callback thread
        Parameters:
        runnable - thread function to run
        name - name of the thread, optional
        Returns:
        created workflow thread. Should be treated as a pass-through object that shouldn't be manipulated in any way by the interceptor code.