com.epam.fixengine
Enum SessionState

java.lang.Object
  extended by java.lang.Enum<SessionState>
      extended by com.epam.fixengine.SessionState
All Implemented Interfaces:
Serializable, Comparable<SessionState>

public enum SessionState
extends Enum<SessionState>

Session state enum


Enum Constant Summary
CONNECTED
           
CONNECTING
           
DEAD
           
DISCONNECTED
           
DISCONNECTED_ABNORMALLY
           
LOGON_RECEIVED
           
RECONNECTING
           
WAITING_FOR_FORCED_DISCONNECT
          Wait a bit to close session after sending Logout
WAITING_FOR_FORCED_LOGOFF
          Wait for Logout answer
WAITING_FOR_LOGOFF
           
WAITING_FOR_LOGON
           
 
Method Summary
static boolean isConnected(SessionState sessionState)
           
static boolean isDisconnected(SessionState sessionState)
           
static boolean isDisposed(SessionState sessionState)
           
static boolean isNotDisconnected(SessionState sessionState)
           
static SessionState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SessionState[] 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

CONNECTING

public static final SessionState CONNECTING

WAITING_FOR_LOGON

public static final SessionState WAITING_FOR_LOGON

CONNECTED

public static final SessionState CONNECTED

WAITING_FOR_LOGOFF

public static final SessionState WAITING_FOR_LOGOFF

DISCONNECTED

public static final SessionState DISCONNECTED

LOGON_RECEIVED

public static final SessionState LOGON_RECEIVED

DEAD

public static final SessionState DEAD

DISCONNECTED_ABNORMALLY

public static final SessionState DISCONNECTED_ABNORMALLY

RECONNECTING

public static final SessionState RECONNECTING

WAITING_FOR_FORCED_LOGOFF

public static final SessionState WAITING_FOR_FORCED_LOGOFF
Wait for Logout answer


WAITING_FOR_FORCED_DISCONNECT

public static final SessionState WAITING_FOR_FORCED_DISCONNECT
Wait a bit to close session after sending Logout

Method Detail

values

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

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

valueOf

public static SessionState 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

isConnected

public static boolean isConnected(SessionState sessionState)

isNotDisconnected

public static boolean isNotDisconnected(SessionState sessionState)

isDisconnected

public static boolean isDisconnected(SessionState sessionState)

isDisposed

public static boolean isDisposed(SessionState sessionState)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.