Interface SharedCountReader
- All Superinterfaces:
Listenable<SharedCountListener>
- All Known Implementing Classes:
SharedCount
Abstracts a shared integer and allows listening for changes to its value
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Return the current value of the countReturn the current count and versionMethods 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
-