org.jppf.server.nio.multiplexer
Enum MultiplexerTransition

java.lang.Object
  extended by java.lang.Enum<MultiplexerTransition>
      extended by org.jppf.server.nio.multiplexer.MultiplexerTransition
All Implemented Interfaces:
Serializable, Comparable<MultiplexerTransition>

public enum MultiplexerTransition
extends Enum<MultiplexerTransition>

Enumeration of the possible state transitions for a multiplexer channel.

Author:
Laurent Cohen

Enum Constant Summary
TO_IDENTIFYING_INBOUND_CHANNEL
          Transition from a state to IDENTIFYING_INBOUND_CHANNEL.
TO_IDLE
          Transition from a state to SENDING in idle mode.
TO_RECEIVING
          Transition from a state to RECEIVING.
TO_SENDING
          Transition from a state to SENDING.
TO_SENDING_MULTIPLEXING_INFO
          Transition from a state to SENDING_MULTIPLEXING_INFO.
TO_SENDING_OR_RECEIVING
          Transition from a state to SENDING_OR_RECEIVING.
 
Method Summary
static MultiplexerTransition valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MultiplexerTransition[] 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

TO_SENDING_OR_RECEIVING

public static final MultiplexerTransition TO_SENDING_OR_RECEIVING
Transition from a state to SENDING_OR_RECEIVING.


TO_SENDING

public static final MultiplexerTransition TO_SENDING
Transition from a state to SENDING.


TO_RECEIVING

public static final MultiplexerTransition TO_RECEIVING
Transition from a state to RECEIVING.


TO_IDENTIFYING_INBOUND_CHANNEL

public static final MultiplexerTransition TO_IDENTIFYING_INBOUND_CHANNEL
Transition from a state to IDENTIFYING_INBOUND_CHANNEL.


TO_SENDING_MULTIPLEXING_INFO

public static final MultiplexerTransition TO_SENDING_MULTIPLEXING_INFO
Transition from a state to SENDING_MULTIPLEXING_INFO.


TO_IDLE

public static final MultiplexerTransition TO_IDLE
Transition from a state to SENDING in idle mode.

Method Detail

values

public static MultiplexerTransition[] 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 (MultiplexerTransition c : MultiplexerTransition.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MultiplexerTransition 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 © 2005-2010 JPPF Team.