public interface StateDelegator
StateDelegator
is able to delegate BeamFnApi.StateRequest
s to a set of registered
handlers. Any request for an unregistered process bundle instruction id is automatically failed.Modifier and Type | Interface and Description |
---|---|
static interface |
StateDelegator.Registration
Allows callers to deregister from receiving further state requests.
|
Modifier and Type | Method and Description |
---|---|
StateDelegator.Registration |
registerForProcessBundleInstructionId(java.lang.String processBundleInstructionId,
StateRequestHandler handler)
Registers the supplied handler for the given process bundle instruction id for all
BeamFnApi.StateRequest s with a matching id. |
StateDelegator.Registration registerForProcessBundleInstructionId(java.lang.String processBundleInstructionId, StateRequestHandler handler)
BeamFnApi.StateRequest
s with a matching id. A handle is returned which allows one to deregister from
this StateDelegator
.