Class ZooKeeperSharedCount
- java.lang.Object
-
- org.apache.flink.runtime.zookeeper.ZooKeeperSharedCount
-
public class ZooKeeperSharedCount extends Object
Wrapper class for aSharedCount
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
Constructors Constructor Description ZooKeeperSharedCount(org.apache.flink.shaded.curator5.org.apache.curator.framework.recipes.shared.SharedCount sharedCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ZooKeeperVersionedValue<Integer>
getVersionedValue()
void
start()
boolean
trySetCount(ZooKeeperVersionedValue<Integer> previous, int newCount)
-
-
-
Method Detail
-
close
public void close() throws IOException
- Throws:
IOException
-
getVersionedValue
public ZooKeeperVersionedValue<Integer> getVersionedValue()
-
trySetCount
public boolean trySetCount(ZooKeeperVersionedValue<Integer> previous, int newCount) throws Exception
- Throws:
Exception
-
-