com.dxfeed.api
Enum DXEndpoint.State

java.lang.Object
  extended by java.lang.Enum<DXEndpoint.State>
      extended by com.dxfeed.api.DXEndpoint.State
All Implemented Interfaces:
Serializable, Comparable<DXEndpoint.State>
Enclosing class:
DXEndpoint

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

Represents the current state of endpoint.

See Also:
DXEndpoint

Enum Constant Summary
CLOSED
          Endpoint was closed.
CONNECTED
          The connection to remote endpoint is established.
CONNECTING
          The connect method was called to establish connection to remove endpoint, but connection is not actually established yet or was lost.
NOT_CONNECTED
          Endpoint was created by is not connected to remote endpoints.
 
Method Summary
static DXEndpoint.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DXEndpoint.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

NOT_CONNECTED

public static final DXEndpoint.State NOT_CONNECTED
Endpoint was created by is not connected to remote endpoints.


CONNECTING

public static final DXEndpoint.State CONNECTING
The connect method was called to establish connection to remove endpoint, but connection is not actually established yet or was lost.


CONNECTED

public static final DXEndpoint.State CONNECTED
The connection to remote endpoint is established.


CLOSED

public static final DXEndpoint.State CLOSED
Endpoint was closed.

Method Detail

values

public static DXEndpoint.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 (DXEndpoint.State c : DXEndpoint.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 DXEndpoint.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 © 2013 Devexperts. All Rights Reserved.