public class ZkDistributedSemaphore extends Object implements DistributedSemaphore
DistributedSemaphore.DistributedLease| Constructor and Description |
|---|
ZkDistributedSemaphore(org.apache.curator.framework.CuratorFramework client,
String path,
int numberOfLeases) |
| Modifier and Type | Method and Description |
|---|---|
DistributedSemaphore.DistributedLease |
acquire(long time,
TimeUnit unit) |
public ZkDistributedSemaphore(org.apache.curator.framework.CuratorFramework client,
String path,
int numberOfLeases)
public DistributedSemaphore.DistributedLease acquire(long time, TimeUnit unit) throws Exception
acquire in interface DistributedSemaphoreExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.