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.curator5.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.curator5.org.apache.curator.framework.recipes.shared.SharedCount sharedCount)
public void close() throws IOException
IOException
public ZooKeeperVersionedValue<Integer> getVersionedValue()
public boolean trySetCount(ZooKeeperVersionedValue<Integer> previous, int newCount) throws Exception
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.