Enum HangingRequestDisconnectReason
- java.lang.Object
-
- java.lang.Enum<HangingRequestDisconnectReason>
-
- microsoft.exchange.webservices.data.core.enumeration.misc.HangingRequestDisconnectReason
-
- All Implemented Interfaces:
Serializable,Comparable<HangingRequestDisconnectReason>
public enum HangingRequestDisconnectReason extends Enum<HangingRequestDisconnectReason>
Enumeration of reasons that a hanging request may disconnect.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CleanThe server cleanly closed the connection.ExceptionAn exception occurred on the connectionTimeoutThe connection timed out do to a lack of a heartbeat received.UserInitiatedThe client closed the connection.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HangingRequestDisconnectReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static HangingRequestDisconnectReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Clean
public static final HangingRequestDisconnectReason Clean
The server cleanly closed the connection.
-
UserInitiated
public static final HangingRequestDisconnectReason UserInitiated
The client closed the connection.
-
Timeout
public static final HangingRequestDisconnectReason Timeout
The connection timed out do to a lack of a heartbeat received.
-
Exception
public static final HangingRequestDisconnectReason Exception
An exception occurred on the connection
-
-
Method Detail
-
values
public static HangingRequestDisconnectReason[] 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 (HangingRequestDisconnectReason c : HangingRequestDisconnectReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HangingRequestDisconnectReason 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
-
-