public final class CommandExecutionStateHandler
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndTransit(CommandExecutionState expect,
CommandExecutionState state) |
boolean |
compareAndTransitOnMatch(java.lang.String identifier,
CommandExecutionState expect,
CommandExecutionState state) |
java.lang.String |
getIdentifier() |
CommandExecutionState |
getState() |
static CommandExecutionStateHandler |
of(java.lang.String identifier) |
void |
transit(CommandExecutionState state) |
void |
transitOnMatch(java.lang.String identifier,
CommandExecutionState state) |
public static CommandExecutionStateHandler of(java.lang.String identifier)
public void transit(CommandExecutionState state)
public void transitOnMatch(java.lang.String identifier, CommandExecutionState state)
public boolean compareAndTransit(CommandExecutionState expect, CommandExecutionState state)
public boolean compareAndTransitOnMatch(java.lang.String identifier, CommandExecutionState expect, CommandExecutionState state)
public java.lang.String getIdentifier()
public CommandExecutionState getState()