public enum CloseReason extends Enum<CloseReason>
| Enum Constant and Description |
|---|
CLIENT_ACTION
Client closed the session.
|
NULL_VAL
To be used to represent not present or null.
|
SERVICE_ACTION
Service closed the session.
|
TIMEOUT
Session timed out due to inactivity.
|
| Modifier and Type | Method and Description |
|---|---|
static CloseReason |
get(int value)
Lookup the enum value representing the value.
|
int |
value()
The raw encoded value in the Java type representation.
|
static CloseReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseReason CLIENT_ACTION
public static final CloseReason SERVICE_ACTION
public static final CloseReason TIMEOUT
public static final CloseReason NULL_VAL
public static CloseReason[] values()
for (CloseReason c : CloseReason.values()) System.out.println(c);
public static CloseReason 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 nullpublic int value()
public static CloseReason get(int value)
value - encoded to be looked up.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.