org.atmosphere.wasync
Enum Socket.STATUS

java.lang.Object
  extended by java.lang.Enum<Socket.STATUS>
      extended by org.atmosphere.wasync.Socket.STATUS
All Implemented Interfaces:
Serializable, Comparable<Socket.STATUS>
Enclosing interface:
Socket

public static enum Socket.STATUS
extends Enum<Socket.STATUS>

The current state of the underlying Socket.


Enum Constant Summary
CLOSE
          The socket is close
ERROR
          The socket is broken
INIT
          The socket is not yet connected
OPEN
          The socket is open and ready to send messages
REOPENED
          The socket was closed and re-opened
 
Method Summary
static Socket.STATUS valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Socket.STATUS[] 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

INIT

public static final Socket.STATUS INIT
The socket is not yet connected


OPEN

public static final Socket.STATUS OPEN
The socket is open and ready to send messages


REOPENED

public static final Socket.STATUS REOPENED
The socket was closed and re-opened


CLOSE

public static final Socket.STATUS CLOSE
The socket is close


ERROR

public static final Socket.STATUS ERROR
The socket is broken

Method Detail

values

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

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

valueOf

public static Socket.STATUS 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 © 2013. All Rights Reserved.