T - as Token typepublic interface TokenEvent<T extends Token<T>> extends FlowStatusChange, SynchronousChange<Feedback>, Behaviors
Token
ConsumerTokenStatus is a collection of pre-defined TokenStatus's. It itself is not a TokenStatus type.
TokenEvents or TokenEvent.TokenEventTypes. A TokenStatus is the state/status of a Token;
while a TokenEvent represents an event over a Token. The event may or may not modify the token ,or maybe a result of the Tokens
current state. Hence the to are separable.TokenStatus| Modifier and Type | Interface and Description |
|---|---|
static class |
TokenEvent.ContainerEventType |
static interface |
TokenEvent.TokenEventFlowStatus |
static class |
TokenEvent.TokenEventType
These are transient Notification (event) types.
Please do not confuse with TokenStatus instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addBehavior(Behavior behavior) |
Map<Class,Behavior> |
getBehaviors()
Optional
Behaviors for custom strategies |
Feedback |
getFeedback() |
TokenEvent.TokenEventFlowStatus |
getFlowStatus() |
Consumer |
getPreEventProcess()
When tokens are assigned to this Event, then pre-action on tokens before the event is processed.
|
void |
setBehaviors(Map<Class,Behavior> behaviors) |
void |
setFlowStatus(TokenEvent.TokenEventFlowStatus flowStatus) |
setFeedbackTokenEvent.TokenEventFlowStatus getFlowStatus()
getFlowStatus in interface FlowStatusChangeFeedback getFeedback()
getFeedback in interface SynchronousChange<Feedback>Consumer getPreEventProcess()
Consumer or Function.
Map<Class,Behavior> getBehaviors()
Behaviors for custom strategiesgetBehaviors in interface Behaviorsvoid setBehaviors(Map<Class,Behavior> behaviors)
setBehaviors in interface Behaviorsvoid addBehavior(Behavior behavior)
addBehavior in interface BehaviorsgetBehaviors()void setFlowStatus(TokenEvent.TokenEventFlowStatus flowStatus)
Copyright © 2018. All rights reserved.