Interface SharedCountReader

All Superinterfaces:
org.apache.curator.framework.listen.Listenable<SharedCountListener>
All Known Implementing Classes:
SharedCount

public interface SharedCountReader extends org.apache.curator.framework.listen.Listenable<SharedCountListener>
Abstracts a shared integer and allows listening for changes to its value
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the current value of the count
    Return the current count and version

    Methods inherited from interface org.apache.curator.framework.listen.Listenable

    addListener, addListener, removeListener
  • Method Details

    • getCount

      int getCount()
      Return the current value of the count
      Returns:
      count
    • getVersionedValue

      VersionedValue<Integer> getVersionedValue()
      Return the current count and version
      Returns:
      count and version