Interface ConnectionStateListener

    • Method Detail

      • stateChanged

        void stateChanged​(CuratorFramework client,
                          ConnectionState newState)
        Called when there is a state change in the connection
        Parameters:
        client - the client
        newState - the new state
      • doNotDecorate

        default boolean doNotDecorate()
        Normally, ConnectionStateListeners are decorated via the configured ConnectionStateListenerDecorator. For certain critical cases, however, this is not desired. If your listener returns true for doNotDecorate(), it will not be passed through the decorator.
        Returns:
        true/false