public enum SessionState extends Enum<SessionState>
Enum Constant and Description |
---|
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 |
Modifier and Type | Method and Description |
---|---|
boolean |
isConnected() |
static boolean |
isConnected(SessionState sessionState) |
boolean |
isDisconnected() |
static boolean |
isDisconnected(SessionState sessionState) |
boolean |
isDisposed() |
static boolean |
isDisposed(SessionState sessionState) |
boolean |
isNotDisconnected() |
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.
|
public static final SessionState CONNECTING
public static final SessionState WAITING_FOR_LOGON
public static final SessionState CONNECTED
public static final SessionState WAITING_FOR_LOGOFF
public static final SessionState DISCONNECTED
public static final SessionState LOGON_RECEIVED
public static final SessionState DEAD
public static final SessionState DISCONNECTED_ABNORMALLY
public static final SessionState RECONNECTING
public static final SessionState WAITING_FOR_FORCED_LOGOFF
public static final SessionState WAITING_FOR_FORCED_DISCONNECT
public static SessionState[] values()
for (SessionState c : SessionState.values()) System.out.println(c);
public static SessionState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean isConnected(SessionState sessionState)
public static boolean isNotDisconnected(SessionState sessionState)
public static boolean isDisconnected(SessionState sessionState)
public static boolean isDisposed(SessionState sessionState)
public boolean isConnected()
public boolean isNotDisconnected()
public boolean isDisconnected()
public boolean isDisposed()
Copyright © 2000–2022 EPAM Systems. All rights reserved.