|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SessionState>
org.jsmpp.extra.SessionState
public enum SessionState
Enum constant represent session state.
Enum Constant Summary | |
---|---|
BOUND_RX
Bound receiver, means bound receive has been initiated. |
|
BOUND_TRX
Bound transceiver, means bound transceive has been initiated. |
|
BOUND_TX
Bound transmitter, means bound transmit has been initiated. |
|
CLOSED
There is no connection at all. |
|
OPEN
Open, means connection has established but not bounded. |
|
OUTBOUND
Outbound, means the session is in outbound state, ready to initiate bound. |
|
UNBOUND
Unbound, means unbound has been initiated but the connection hasn't been closed. |
Method Summary | |
---|---|
boolean |
isBound()
Check whether the session state is bound. |
boolean |
isReceivable()
Check whether the session state is receivable. |
boolean |
isTransmittable()
Check whether the session state is transmittable. |
static SessionState |
valueOf(java.lang.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 |
---|
public static final SessionState OPEN
public static final SessionState BOUND_TX
public static final SessionState BOUND_RX
public static final SessionState BOUND_TRX
public static final SessionState UNBOUND
public static final SessionState CLOSED
public static final SessionState OUTBOUND
Method Detail |
---|
public static SessionState[] values()
for (SessionState c : SessionState.values()) System.out.println(c);
public static SessionState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic boolean isBound()
public boolean isTransmittable()
public boolean isReceivable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |