Class AsyncSemaphore


  • public class AsyncSemaphore
    extends Object
    Author:
    Nikita Koksharov
    • Constructor Detail

      • AsyncSemaphore

        public AsyncSemaphore(int permits)
    • Method Detail

      • tryAcquire

        public boolean tryAcquire(long timeoutMillis)
      • queueSize

        public int queueSize()
      • removeListeners

        public void removeListeners()
      • acquire

        public void acquire(Runnable listener)
      • getCounter

        public int getCounter()
      • release

        public void release()