Enum PathChildrenCacheEvent.Type

    • Enum Constant Detail

      • CONNECTION_SUSPENDED

        public static final PathChildrenCacheEvent.Type 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. 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

        public static final PathChildrenCacheEvent.Type 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. 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

        public static final PathChildrenCacheEvent.Type 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. 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.
    • Method Detail

      • values

        public static PathChildrenCacheEvent.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PathChildrenCacheEvent.Type c : PathChildrenCacheEvent.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PathChildrenCacheEvent.Type valueOf​(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null