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

    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

    doNotProxy, stateChanged
  • Method Details

    • countHasChanged

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