@NoImplement public interface PolicyStateHandler
CoreEvent
.
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<CoreEvent> |
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,
CoreEvent 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<CoreEvent> getLatestState(PolicyStateId identifier)
identifier
- the identifier of the contextvoid updateState(PolicyStateId identifier, CoreEvent lastStateEvent)
identifier
- the identifier of the contextlastStateEvent
- the last state of the eventCopyright © 2018. All rights reserved.