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.
TokenEvent
s or TokenEvent.TokenEventType
s. 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 Token
s
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
Behavior s 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) |
setFeedback
TokenEvent.TokenEventFlowStatus getFlowStatus()
getFlowStatus
in interface FlowStatusChange
Feedback getFeedback()
getFeedback
in interface SynchronousChange<Feedback>
Consumer getPreEventProcess()
Consumer
or Function
.
Map<Class,Behavior> getBehaviors()
Behavior
s for custom strategiesgetBehaviors
in interface Behaviors
void setBehaviors(Map<Class,Behavior> behaviors)
setBehaviors
in interface Behaviors
void addBehavior(Behavior behavior)
addBehavior
in interface Behaviors
getBehaviors()
void setFlowStatus(TokenEvent.TokenEventFlowStatus flowStatus)
Copyright © 2018. All rights reserved.