public enum EventType extends Enum<EventType>
| 枚举常量和说明 |
|---|
CONNECTION_LOST |
CONNECTION_RECONNECTED |
CONNECTION_SUSPENDED |
INITIALIZED |
NodeChildrenChanged |
NodeCreated |
NodeDataChanged |
NodeDeleted |
None |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.apache.zookeeper.Watcher.Event.EventType |
fromInt(int intValue) |
int |
getIntValue() |
static EventType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static EventType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final EventType None
public static final EventType NodeCreated
public static final EventType NodeDeleted
public static final EventType NodeDataChanged
public static final EventType NodeChildrenChanged
public static final EventType CONNECTION_SUSPENDED
public static final EventType CONNECTION_RECONNECTED
public static final EventType CONNECTION_LOST
public static final EventType INITIALIZED
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getIntValue()
public static org.apache.zookeeper.Watcher.Event.EventType fromInt(int intValue)
Copyright © 2020. All rights reserved.