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

java.lang.Object
  extended by java.lang.Enum<CommandExecutor.State>
      extended by com.oracle.coherence.patterns.command.internal.CommandExecutor.State
All Implemented Interfaces:
Serializable, Comparable<CommandExecutor.State>
Enclosing class:
CommandExecutor

public static enum CommandExecutor.State
extends Enum<CommandExecutor.State>

The set of possible CommandExecutor.States for a CommandExecutor.


Enum Constant Summary
DELAYING
          Indicates that a CommandExecutor has delayed execution do to some doubt in the ownership of the underlying Command Context.
EXECUTING
          Indicates that a CommandExecutor is in the process of executing CommandExecutionRequests.
NEW
          Indicates that a CommandExecutor has been created, and may accept CommandExecutionRequests, but will not execute them until the associated Context has been provided.
SCHEDULED
          Indicates that a CommandExecutor has been been scheduled to execute CommandExecutionRequests, but has yet to commence execution.
STARTING
          Indicates that a CommandExecutor is in the process of initializing itself to commence executing CommandExecutionRequests.
STOPPING
          Indicates that a CommandExecutor is in the process of stopping.
WAITING
          Indicates that a CommandExecutor has been successfully started but is currently waiting for CommandExecutionRequests to arrive.
 
Method Summary
static CommandExecutor.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CommandExecutor.State[] 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

NEW

public static final CommandExecutor.State NEW
Indicates that a CommandExecutor has been created, and may accept CommandExecutionRequests, but will not execute them until the associated Context has been provided.


STARTING

public static final CommandExecutor.State STARTING
Indicates that a CommandExecutor is in the process of initializing itself to commence executing CommandExecutionRequests.


WAITING

public static final CommandExecutor.State WAITING
Indicates that a CommandExecutor has been successfully started but is currently waiting for CommandExecutionRequests to arrive.


SCHEDULED

public static final CommandExecutor.State SCHEDULED
Indicates that a CommandExecutor has been been scheduled to execute CommandExecutionRequests, but has yet to commence execution.


DELAYING

public static final CommandExecutor.State DELAYING
Indicates that a CommandExecutor has delayed execution do to some doubt in the ownership of the underlying Command Context.


EXECUTING

public static final CommandExecutor.State EXECUTING
Indicates that a CommandExecutor is in the process of executing CommandExecutionRequests.


STOPPING

public static final CommandExecutor.State STOPPING
Indicates that a CommandExecutor is in the process of stopping. It will no longer execute or accept requests to execute CommandExecutionRequests.

Method Detail

values

public static CommandExecutor.State[] 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.State c : CommandExecutor.State.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.State 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


Copyright © 2016. All rights reserved.