Class ZooKeeperSharedCount
java.lang.Object
org.apache.flink.runtime.zookeeper.ZooKeeperSharedCount
Wrapper class for a
SharedCount so that we don't expose a curator dependency in our
internal APIs. Such an exposure is problematic due to the relocation of curator.-
Constructor Summary
ConstructorsConstructorDescriptionZooKeeperSharedCount(org.apache.flink.shaded.curator5.org.apache.curator.framework.recipes.shared.SharedCount sharedCount) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidstart()booleantrySetCount(ZooKeeperVersionedValue<Integer> previous, int newCount)
-
Constructor Details
-
Method Details
-
start
- Throws:
Exception
-
close
- Throws:
IOException
-
getVersionedValue
-
trySetCount
public boolean trySetCount(ZooKeeperVersionedValue<Integer> previous, int newCount) throws Exception - Throws:
Exception
-