Package com.barchart.udt
Enum Class StatusUDT
- All Implemented Interfaces:
Serializable,Comparable<StatusUDT>,Constable
status of underlying UDT native socket as reported by
SocketUDT.getStatus0()
keep in sync with udt.h UDTSTATUS enum; see:
"enum UDTSTATUS { INIT = 1, OPENED = 2, LISTENING = 3, CONNECTING = 4, CONNECTED = 5, BROKEN = 6, CLOSING = 7, CLOSED = 8, NONEXIST = 9 };"
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionacceptor socket after close(), connector socket after remote unreachableconnector socket after close() is doneconnector socket while close() is in progressbound and connected connector socketbound connector socket trying to connectnewly created socket; both connector and acceptorbound and listening acceptor sockettrying to check status on socket that was closed and removedbound socket; both connector and acceptornon udt constant, catch-all value -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
INIT
newly created socket; both connector and acceptor -
OPENED
bound socket; both connector and acceptor -
LISTENING
bound and listening acceptor socket -
CONNECTING
bound connector socket trying to connect -
CONNECTED
bound and connected connector socket -
BROKEN
acceptor socket after close(), connector socket after remote unreachable -
CLOSING
connector socket while close() is in progress -
CLOSED
connector socket after close() is done -
NONEXIST
trying to check status on socket that was closed and removed -
UNKNOWN
non udt constant, catch-all value
-
-
Field Details
-
log
protected static final org.slf4j.Logger log -
code
private final int code
-
-
Constructor Details
-
StatusUDT
private StatusUDT(int code)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode() -
from
-