Package io.temporal.workflow
Interface DynamicSignalHandler
-
public interface DynamicSignalHandlerUse DynamicSignalHandler to process any signal dynamically. This is useful for a library level code and implementation of DSLs.Use
Workflow.registerListener(Object)to register an implementation of the DynamicSignalListener. Only one such listener can be registered per workflow execution.When registered any signals which don't have a specific handler will be delivered to it.
- See Also:
DynamicQueryHandler,DynamicWorkflow,DynamicUpdateHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HandlerUnfinishedPolicygetUnfinishedPolicy(java.lang.String signalName)Returns the actions taken if a workflow exits with a running instance of this handler.voidhandle(java.lang.String signalName, EncodedValues args)
-
-
-
Method Detail
-
handle
void handle(java.lang.String signalName, EncodedValues args)
-
getUnfinishedPolicy
default HandlerUnfinishedPolicy getUnfinishedPolicy(java.lang.String signalName)
Returns the actions taken if a workflow exits with a running instance of this handler.
-
-