Class LocalClusterCoordinator.LocalSemaphore
java.lang.Object
org.apache.drill.exec.coord.local.LocalClusterCoordinator.LocalSemaphore
- All Implemented Interfaces:
DistributedSemaphore
- Enclosing class:
- LocalClusterCoordinator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.coord.DistributedSemaphore
DistributedSemaphore.DistributedLease
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
LocalSemaphore
public LocalSemaphore(int size)
-
-
Method Details
-
acquire
public DistributedSemaphore.DistributedLease acquire(long timeout, TimeUnit timeUnit) throws Exception - Specified by:
acquire
in interfaceDistributedSemaphore
- Throws:
Exception
-