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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCount()
Return the current value of the countVersionedValue<java.lang.Integer>
getVersionedValue()
Return the current count and version
-
-
-
Method Detail
-
getCount
int getCount()
Return the current value of the count- Returns:
- count
-
getVersionedValue
VersionedValue<java.lang.Integer> getVersionedValue()
Return the current count and version- Returns:
- count and version
-
-