public static enum TokenEvent.TokenEventType extends Enum<TokenEvent.TokenEventType> implements TokenEvent.TokenEventFlowStatus
TokenStatus
instance.
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.TokenEvent
,
TokenStatus
Enum Constant and Description |
---|
ADD
Added it to a container
|
DENY
Any request related to this Token was denied
|
DROP
Dropped/Removed from the Q
|
ERROR
An Error event
|
GENERATE
Generated a Token
|
IN_PROCESS
Token is in Process (and usually implies out of Q)
|
NEXT
An advance warning/intimation
that the token is NEXT to
READY |
POP
Popped it out of the Q / Being Processed
|
PROCESSED
The
|
REACH
An advance warning/intimation
that the token is close to
READY |
READY
Based on an external event (manual or automated)
The Token is ready to be Processed / Served
Do not confuse with TokenStatus type READY_TO_PROCESS |
REQUEUE
The Token was MOVED and Re-Q'd
|
SUPERPASSED
The token was surpassed by an update in another
Token |
UPDATE
Generic Update to any aspect of the Token
|
UPDATE_STATUS
Update status specifically and any status related data along with it.
This event may generate other events based on condition and FlowState.getFlowStatus() |
WAITING
|
Modifier and Type | Method and Description |
---|---|
static TokenEvent.TokenEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenEvent.TokenEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name, ordinal
public static final TokenEvent.TokenEventType GENERATE
public static final TokenEvent.TokenEventType ADD
public static final TokenEvent.TokenEventType POP
public static final TokenEvent.TokenEventType UPDATE
public static final TokenEvent.TokenEventType UPDATE_STATUS
FlowState.getFlowStatus()
public static final TokenEvent.TokenEventType DROP
public static final TokenEvent.TokenEventType REACH
READY
public static final TokenEvent.TokenEventType NEXT
READY
public static final TokenEvent.TokenEventType READY
TokenStatus
type READY_TO_PROCESSpublic static final TokenEvent.TokenEventType WAITING
public static final TokenEvent.TokenEventType IN_PROCESS
public static final TokenEvent.TokenEventType PROCESSED
public static final TokenEvent.TokenEventType SUPERPASSED
Token
public static final TokenEvent.TokenEventType REQUEUE
public static final TokenEvent.TokenEventType DENY
public static final TokenEvent.TokenEventType ERROR
public static TokenEvent.TokenEventType[] values()
for (TokenEvent.TokenEventType c : TokenEvent.TokenEventType.values()) System.out.println(c);
public static TokenEvent.TokenEventType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.