com.oracle.coherence.patterns.command.internal
Enum CommandExecutor.CommandExecutorEvent
java.lang.Object
java.lang.Enum<CommandExecutor.CommandExecutorEvent>
com.oracle.coherence.patterns.command.internal.CommandExecutor.CommandExecutorEvent
- All Implemented Interfaces:
- Event<CommandExecutor.State>, Serializable, Comparable<CommandExecutor.CommandExecutorEvent>
- Enclosing class:
- CommandExecutor
public static enum CommandExecutor.CommandExecutorEvent
- extends Enum<CommandExecutor.CommandExecutorEvent>
- implements Event<CommandExecutor.State>
The types of events the CommandExecutor
FiniteStateMachine will accept.
START
public static final CommandExecutor.CommandExecutorEvent START
STOP
public static final CommandExecutor.CommandExecutorEvent STOP
ACCEPT
public static final CommandExecutor.CommandExecutorEvent ACCEPT
values
public static CommandExecutor.CommandExecutorEvent[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CommandExecutor.CommandExecutorEvent c : CommandExecutor.CommandExecutorEvent.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CommandExecutor.CommandExecutorEvent valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getDesiredState
public CommandExecutor.State getDesiredState(CommandExecutor.State currentState,
ExecutionContext context)
- Specified by:
getDesiredState in interface Event<CommandExecutor.State>
Copyright © 2016. All rights reserved.