public final class AdjustableSemaphore extends Semaphore
| Constructor and Description |
|---|
AdjustableSemaphore(int permits)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxPermits() |
void |
setMaxPermits(int newMax)
Adjusts the maximum number of available permits.
|
acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, drainPermits, getQueuedThreads, getQueueLength, hasQueuedThreads, isFair, reducePermits, release, release, toString, tryAcquire, tryAcquire, tryAcquire, tryAcquireCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.