Class ResizableSemaphore
- java.lang.Object
-
- java.util.concurrent.Semaphore
-
- com.uber.cadence.internal.worker.autoscaler.ResizableSemaphore
-
- All Implemented Interfaces:
java.io.Serializable
public class ResizableSemaphore extends java.util.concurrent.Semaphore
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResizableSemaphore(int permits)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decreasePermits(int reduction)
-
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
-
-