Class AsyncSemaphore

java.lang.Object
org.redisson.misc.AsyncSemaphore

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

    • AsyncSemaphore

      public AsyncSemaphore(int permits)
  • Method Details

    • tryAcquire

      public boolean tryAcquire(long timeoutMillis)
    • queueSize

      public int queueSize()
    • removeListeners

      public void removeListeners()
    • acquire

      public CompletableFuture<Void> acquire()
    • acquire

      public void acquire(Runnable listener)
    • getCounter

      public int getCounter()
    • release

      public void release()
    • toString

      public String toString()
      Overrides:
      toString in class Object