Interface SharedCountListener

  • All Superinterfaces:
    org.apache.curator.framework.state.ConnectionStateListener

    public interface SharedCountListener
    extends org.apache.curator.framework.state.ConnectionStateListener
    Listener for changes to a shared count
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void countHasChanged​(SharedCountReader sharedCount, int newCount)
      Called when the shared value has changed
      • Methods inherited from interface org.apache.curator.framework.state.ConnectionStateListener

        doNotDecorate, stateChanged
    • Method Detail

      • countHasChanged

        void countHasChanged​(SharedCountReader sharedCount,
                             int newCount)
                      throws java.lang.Exception
        Called when the shared value has changed
        Parameters:
        sharedCount - the shared count instance
        newCount - the new count
        Throws:
        java.lang.Exception - errors