public class ZooKeeperSharedCount extends Object
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 and Description |
|---|
ZooKeeperSharedCount(org.apache.flink.shaded.curator4.org.apache.curator.framework.recipes.shared.SharedCount sharedCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ZooKeeperVersionedValue<Integer> |
getVersionedValue() |
void |
start() |
boolean |
trySetCount(ZooKeeperVersionedValue<Integer> previous,
int newCount) |
public ZooKeeperSharedCount(org.apache.flink.shaded.curator4.org.apache.curator.framework.recipes.shared.SharedCount sharedCount)
public void close()
throws IOException
IOExceptionpublic ZooKeeperVersionedValue<Integer> getVersionedValue()
public boolean trySetCount(ZooKeeperVersionedValue<Integer> previous, int newCount) throws Exception
ExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.