Package rocks.xmpp.core.session
Enum ConnectionEvent.Type
- java.lang.Object
-
- java.lang.Enum<ConnectionEvent.Type>
-
- rocks.xmpp.core.session.ConnectionEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ConnectionEvent.Type>
- Enclosing class:
- ConnectionEvent
public static enum ConnectionEvent.Type extends Enum<ConnectionEvent.Type>
The connection event type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCONNECTED
The connection is disconnected.RECONNECTION_FAILED
The reconnection has failed.RECONNECTION_PENDING
The reconnection is pending.RECONNECTION_SUCCEEDED
The reconnection has succeeded.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConnectionEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConnectionEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISCONNECTED
public static final ConnectionEvent.Type DISCONNECTED
The connection is disconnected.
-
RECONNECTION_FAILED
public static final ConnectionEvent.Type RECONNECTION_FAILED
The reconnection has failed.
-
RECONNECTION_SUCCEEDED
public static final ConnectionEvent.Type RECONNECTION_SUCCEEDED
The reconnection has succeeded.
-
RECONNECTION_PENDING
public static final ConnectionEvent.Type RECONNECTION_PENDING
The reconnection is pending.
-
-
Method Detail
-
values
public static ConnectionEvent.Type[] 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 (ConnectionEvent.Type c : ConnectionEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConnectionEvent.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-