Enum PathChildrenCacheEvent.Type
java.lang.Object
java.lang.Enum<PathChildrenCacheEvent.Type>
org.apache.curator.framework.recipes.cache.PathChildrenCacheEvent.Type
- All Implemented Interfaces:
Serializable
,Comparable<PathChildrenCacheEvent.Type>
,java.lang.constant.Constable
- Enclosing class:
PathChildrenCacheEvent
Type of change
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA child was added to the pathA child was removed from the pathA child's data was changedCalled when the connection has changed toConnectionState.LOST
This is exposed so that users of the class can be notified of issues that *might* affect normal operation.Called when the connection has changed toConnectionState.RECONNECTED
This is exposed so that users of the class can be notified of issues that *might* affect normal operation.Called when the connection has changed toConnectionState.SUSPENDED
This is exposed so that users of the class can be notified of issues that *might* affect normal operation.Posted whenPathChildrenCache.start(PathChildrenCache.StartMode)
is called withPathChildrenCache.StartMode.POST_INITIALIZED_EVENT
. -
Method Summary
Modifier and TypeMethodDescriptionstatic PathChildrenCacheEvent.Type
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.
-
Enum Constant Details
-
CHILD_ADDED
A child was added to the path -
CHILD_UPDATED
A child's data was changed -
CHILD_REMOVED
A child was removed from the path -
CONNECTION_SUSPENDED
Called when the connection has changed toConnectionState.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. -
CONNECTION_RECONNECTED
Called when the connection has changed toConnectionState.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. -
CONNECTION_LOST
Called when the connection has changed toConnectionState.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. -
INITIALIZED
Posted whenPathChildrenCache.start(PathChildrenCache.StartMode)
is called withPathChildrenCache.StartMode.POST_INITIALIZED_EVENT
. This event signals that the initial cache has been populated.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-