public enum ChannelClosedReason extends Enum<ChannelClosedReason>
| Enum Constant and Description |
|---|
CHANNEL_ERROR |
CHANNEL_TIMEOUT |
REQUESTED_BY_CLIENT |
SERVER_SHUTDOWN |
| Modifier and Type | Method and Description |
|---|---|
static ChannelClosedReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelClosedReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelClosedReason REQUESTED_BY_CLIENT
public static final ChannelClosedReason CHANNEL_TIMEOUT
public static final ChannelClosedReason CHANNEL_ERROR
public static final ChannelClosedReason SERVER_SHUTDOWN
public static ChannelClosedReason[] values()
for (ChannelClosedReason c : ChannelClosedReason.values()) System.out.println(c);
public static ChannelClosedReason 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 © 2019 Tecgraf/PUC-Rio. All rights reserved.