public interface PolicyStateHandler
Event.
Implementations will be executed concurrently but always using different identifiers. There will be no concurrent invocation
for the same identifier.| Modifier and Type | Method and Description |
|---|---|
void |
destroyState(String executionIdentifier)
Frees resources associated with the given context identifier
|
Optional<Event> |
getLatestState(PolicyStateId identifier) |
Processor |
retrieveNextOperation(String executionIdentifier) |
void |
updateNextOperation(String executionIdentifier,
Processor nextOperation)
Associated the
identifier with the policy next operation to execute |
void |
updateState(PolicyStateId identifier,
Event lastStateEvent)
Updates the event of the policy for the context with the given identifier.
|
void updateNextOperation(String executionIdentifier, Processor nextOperation)
identifier with the policy next operation to executeexecutionIdentifier - the identifier of the contextnextOperation - the next operation of the policyProcessor retrieveNextOperation(String executionIdentifier)
executionIdentifier - the identifier of the contextvoid destroyState(String executionIdentifier)
executionIdentifier - the identifier of the contextOptional<Event> getLatestState(PolicyStateId identifier)
identifier - the identifier of the contextvoid updateState(PolicyStateId identifier, Event lastStateEvent)
identifier - the identifier of the contextlastStateEvent - the last state of the eventCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.