public enum HangingRequestDisconnectReason extends Enum<HangingRequestDisconnectReason>
Enum Constant and Description |
---|
Clean
The server cleanly closed the connection.
|
Exception
An exception occurred on the connection
|
Timeout
The connection timed out do to a lack of a heartbeat received.
|
UserInitiated
The client closed the connection.
|
Modifier and Type | Method and Description |
---|---|
static HangingRequestDisconnectReason |
valueOf(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.
|
public static final HangingRequestDisconnectReason Clean
public static final HangingRequestDisconnectReason UserInitiated
public static final HangingRequestDisconnectReason Timeout
public static final HangingRequestDisconnectReason Exception
public static HangingRequestDisconnectReason[] values()
for (HangingRequestDisconnectReason c : HangingRequestDisconnectReason.values()) System.out.println(c);
public static HangingRequestDisconnectReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2015 Microsoft. All rights reserved.