public static enum SessionCloseListener.Cause extends Enum<SessionCloseListener.Cause>
| Enum Constant and Description |
|---|
COMMUNICATION_FAILURE
Session was closed due to communication failure with remote endpoint.
|
LOCAL_CLOSE
Session was explicitly closed by local endpoint.
|
REMOTE_CLOSE
Session was explicitly closed by remote endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
static SessionCloseListener.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionCloseListener.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionCloseListener.Cause LOCAL_CLOSE
public static final SessionCloseListener.Cause REMOTE_CLOSE
public static final SessionCloseListener.Cause COMMUNICATION_FAILURE
public static SessionCloseListener.Cause[] values()
for (SessionCloseListener.Cause c : SessionCloseListener.Cause.values()) System.out.println(c);
public static SessionCloseListener.Cause 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 © 2006–2015 Cojen. All rights reserved.