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 DistributedSemaphore
Exception
Copyright © 1970 The Apache Software Foundation. All rights reserved.