public enum SessionState extends java.lang.Enum<SessionState>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 namejava.lang.NullPointerException
- if the argument is nullpublic boolean isBound()
public boolean isTransmittable()
public boolean isReceivable()