|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PathChildrenCacheEvent.Type>
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent.Type
public static enum PathChildrenCacheEvent.Type
Type of change
| Enum Constant Summary | |
|---|---|
CHILD_ADDED
A child was added to the path |
|
CHILD_REMOVED
A child was removed from the path |
|
CHILD_UPDATED
A child's data was changed |
|
CONNECTION_LOST
Called when the connection has changed to ConnectionState.LOST
This is exposed so that users of the class can be notified of issues that *might* affect normal operation. |
|
CONNECTION_RECONNECTED
Called when the connection has changed to ConnectionState.RECONNECTED
This is exposed so that users of the class can be notified of issues that *might* affect normal operation. |
|
CONNECTION_SUSPENDED
Called when the connection has changed to ConnectionState.SUSPENDED
This is exposed so that users of the class can be notified of issues that *might* affect normal operation. |
|
INITIALIZED
Posted when PathChildrenCache.start(PathChildrenCache.StartMode) is called
with PathChildrenCache.StartMode.POST_INITIALIZED_EVENT. |
|
| Method Summary | |
|---|---|
static PathChildrenCacheEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PathChildrenCacheEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PathChildrenCacheEvent.Type CHILD_ADDED
public static final PathChildrenCacheEvent.Type CHILD_UPDATED
public static final PathChildrenCacheEvent.Type CHILD_REMOVED
public static final PathChildrenCacheEvent.Type CONNECTION_SUSPENDED
ConnectionState.SUSPENDED
This is exposed so that users of the class can be notified of issues that *might* affect normal operation.
The PathChildrenCache is written such that listeners are not expected to do anything special on this
event, except for those people who want to cause some application-specific logic to fire when this occurs.
While the connection is down, the PathChildrenCache will continue to have its state from before it lost
the connection and after the connection is restored, the PathChildrenCache will emit normal child events
for all of the adds, deletes and updates that happened during the time that it was disconnected.
public static final PathChildrenCacheEvent.Type CONNECTION_RECONNECTED
ConnectionState.RECONNECTED
This is exposed so that users of the class can be notified of issues that *might* affect normal operation.
The PathChildrenCache is written such that listeners are not expected to do anything special on this
event, except for those people who want to cause some application-specific logic to fire when this occurs.
While the connection is down, the PathChildrenCache will continue to have its state from before it lost
the connection and after the connection is restored, the PathChildrenCache will emit normal child events
for all of the adds, deletes and updates that happened during the time that it was disconnected.
public static final PathChildrenCacheEvent.Type CONNECTION_LOST
ConnectionState.LOST
This is exposed so that users of the class can be notified of issues that *might* affect normal operation.
The PathChildrenCache is written such that listeners are not expected to do anything special on this
event, except for those people who want to cause some application-specific logic to fire when this occurs.
While the connection is down, the PathChildrenCache will continue to have its state from before it lost
the connection and after the connection is restored, the PathChildrenCache will emit normal child events
for all of the adds, deletes and updates that happened during the time that it was disconnected.
public static final PathChildrenCacheEvent.Type INITIALIZED
PathChildrenCache.start(PathChildrenCache.StartMode) is called
with PathChildrenCache.StartMode.POST_INITIALIZED_EVENT. This
event signals that the initial cache has been populated.
| Method Detail |
|---|
public static PathChildrenCacheEvent.Type[] values()
for (PathChildrenCacheEvent.Type c : PathChildrenCacheEvent.Type.values()) System.out.println(c);
public static PathChildrenCacheEvent.Type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||