public enum ChannelState extends Enum<ChannelState>
| Enum Constant and Description |
|---|
ALIVE
存活可用状态
|
CLOSE
关闭状态
|
INIT
初始化完成
|
UNALIVE
不存活可用状态
|
UNINIT
未初始化状态
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAliveState() |
boolean |
isCloseState() |
boolean |
isInitState() |
boolean |
isUnAliveState() |
boolean |
isUnInitState() |
static ChannelState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChannelState UNINIT
public static final ChannelState INIT
public static final ChannelState ALIVE
public static final ChannelState UNALIVE
public static final ChannelState CLOSE
public static ChannelState[] values()
for (ChannelState c : ChannelState.values()) System.out.println(c);
public static ChannelState 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 boolean isAliveState()
public boolean isUnAliveState()
public boolean isCloseState()
public boolean isInitState()
public boolean isUnInitState()
Copyright © 2019. All rights reserved.