com.oracle.coherence.patterns.command.internal
Enum CommandExecutor.CommandExecutorEvent

java.lang.Object
  extended by java.lang.Enum<CommandExecutor.CommandExecutorEvent>
      extended by 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.


Enum Constant Summary
ACCEPT
           
START
           
STOP
           
 
Method Summary
 CommandExecutor.State getDesiredState(CommandExecutor.State currentState, ExecutionContext context)
           
static CommandExecutor.CommandExecutorEvent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandExecutor.CommandExecutorEvent[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

START

public static final CommandExecutor.CommandExecutorEvent START

STOP

public static final CommandExecutor.CommandExecutorEvent STOP

ACCEPT

public static final CommandExecutor.CommandExecutorEvent ACCEPT
Method Detail

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.