Class AdjustableSemaphore
java.lang.Object
java.util.concurrent.Semaphore
org.elasticsearch.common.util.concurrent.AdjustableSemaphore
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.concurrent.Semaphore
acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, drainPermits, getQueuedThreads, getQueueLength, hasQueuedThreads, isFair, reducePermits, release, release, toString, tryAcquire, tryAcquire, tryAcquire, tryAcquire
-
Constructor Details
-
AdjustableSemaphore
public AdjustableSemaphore(int maxPermits, boolean fair)
-
-
Method Details
-
setMaxPermits
public void setMaxPermits(int permits)
-