Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ResizableSemaphore

        public ResizableSemaphore​(int permits)
    • Method Detail

      • decreasePermits

        public void decreasePermits​(int reduction)