Interface WorkflowInboundCallsInterceptor

    • Method Detail

      • init

        void init​(WorkflowOutboundCallsInterceptor outboundCalls)
        Called when workflow class is instantiated. May create a WorkflowOutboundCallsInterceptor instance. The instance must forward all the calls to outboundCalls, but it may change the input parameters.

        The instance should be passed into the {next.init(newWorkflowOutboundCallsInterceptor)}.

        Parameters:
        outboundCalls - an existing interceptor instance to be proxied by the interceptor created inside this method
        See Also:
        for the definition of "next"
      • newWorkflowMethodThread

        @Nonnull
        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

        @Nonnull
        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.