Package org.apache.drill.exec.coord.zk
Class ZkDistributedSemaphore
java.lang.Object
org.apache.drill.exec.coord.zk.ZkDistributedSemaphore
- All Implemented Interfaces:
DistributedSemaphore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.coord.DistributedSemaphore
DistributedSemaphore.DistributedLease
-
Constructor Summary
ConstructorDescriptionZkDistributedSemaphore
(org.apache.curator.framework.CuratorFramework client, String path, int numberOfLeases) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ZkDistributedSemaphore
public ZkDistributedSemaphore(org.apache.curator.framework.CuratorFramework client, String path, int numberOfLeases)
-
-
Method Details
-
acquire
- Specified by:
acquire
in interfaceDistributedSemaphore
- Throws:
Exception
-