public class ZkDistributedSemaphore extends Object implements DistributedSemaphore
DistributedSemaphore.DistributedLease| Constructor and Description |
|---|
ZkDistributedSemaphore(org.apache.curator.framework.CuratorFramework client,
String path,
int numberOfLeases) |
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 © 2017 The Apache Software Foundation. All rights reserved.