org.restlet.engine.io
Enum IoState

java.lang.Object
  extended by java.lang.Enum<IoState>
      extended by org.restlet.engine.io.IoState
All Implemented Interfaces:
Serializable, Comparable<IoState>

public enum IoState
extends Enum<IoState>

Enumeration of the connection IO states. It can describe either inbound or outbound IO states.

Author:
Jerome Louvel

Enum Constant Summary
IDLE
          No activity going on.
INTEREST
          IO interest reported.
PROCESSING
          IO activity going on.
READY
          IO ready to be processed.
 
Method Summary
static IoState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IoState[] 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

IDLE

public static final IoState IDLE
No activity going on.


INTEREST

public static final IoState INTEREST
IO interest reported.


READY

public static final IoState READY
IO ready to be processed.


PROCESSING

public static final IoState PROCESSING
IO activity going on.

Method Detail

values

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

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

valueOf

public static IoState 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-2013 Restlet.