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