Package com.millistream.www
Enum Callback.StatusCode
- java.lang.Object
-
- java.lang.Enum<Callback.StatusCode>
-
- com.millistream.www.Callback.StatusCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Callback.StatusCode>
- Enclosing interface:
- Callback
public static enum Callback.StatusCode extends java.lang.Enum<Callback.StatusCode>
Defines the various connection states
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTED
Connected with the server, establishing a secure channelCONNECTING
Trying to connect with the serverDISCONNECTED
Disconnected from the serverLOOKUP
Performing DNS lookup of the host nameRCV_HB_REQ
Client received a Heartbeat request from the serverRCV_HB_RES
Client received a Hearbeat response from the serverREADYTOLOGON
The secure channel with the server is established and you can now send the logon messageSND_HB_REQ
Client sent a Heartbeat request to the server
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Callback.StatusCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Callback.StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOOKUP
public static final Callback.StatusCode LOOKUP
Performing DNS lookup of the host name
-
CONNECTING
public static final Callback.StatusCode CONNECTING
Trying to connect with the server
-
CONNECTED
public static final Callback.StatusCode CONNECTED
Connected with the server, establishing a secure channel
-
DISCONNECTED
public static final Callback.StatusCode DISCONNECTED
Disconnected from the server
-
READYTOLOGON
public static final Callback.StatusCode READYTOLOGON
The secure channel with the server is established and you can now send the logon message
-
SND_HB_REQ
public static final Callback.StatusCode SND_HB_REQ
Client sent a Heartbeat request to the server
-
RCV_HB_REQ
public static final Callback.StatusCode RCV_HB_REQ
Client received a Heartbeat request from the server
-
RCV_HB_RES
public static final Callback.StatusCode RCV_HB_RES
Client received a Hearbeat response from the server
-
-
Method Detail
-
values
public static Callback.StatusCode[] 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 (Callback.StatusCode c : Callback.StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Callback.StatusCode valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-