Class SequenceWindow.NoopSemaphore

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    SequenceWindow

    private static class SequenceWindow.NoopSemaphore
    extends java.util.concurrent.Semaphore
    • Constructor Summary

      Constructors 
      Constructor Description
      NoopSemaphore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int availablePermits()  
      void release​(int permits)  
      boolean tryAcquire()  
      boolean tryAcquire​(int permits)  
      boolean tryAcquire​(int permits, long timeout, java.util.concurrent.TimeUnit unit)  
      boolean tryAcquire​(long timeout, java.util.concurrent.TimeUnit unit)  
      • Methods inherited from class java.util.concurrent.Semaphore

        acquire, acquire, acquireUninterruptibly, acquireUninterruptibly, drainPermits, getQueuedThreads, getQueueLength, hasQueuedThreads, isFair, reducePermits, release, toString
      • Methods inherited from class java.lang.Object

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

      • NoopSemaphore

        public NoopSemaphore()
    • Method Detail

      • tryAcquire

        public boolean tryAcquire()
        Overrides:
        tryAcquire in class java.util.concurrent.Semaphore
      • tryAcquire

        public boolean tryAcquire​(long timeout,
                                  java.util.concurrent.TimeUnit unit)
        Overrides:
        tryAcquire in class java.util.concurrent.Semaphore
      • tryAcquire

        public boolean tryAcquire​(int permits)
        Overrides:
        tryAcquire in class java.util.concurrent.Semaphore
      • tryAcquire

        public boolean tryAcquire​(int permits,
                                  long timeout,
                                  java.util.concurrent.TimeUnit unit)
        Overrides:
        tryAcquire in class java.util.concurrent.Semaphore
      • release

        public void release​(int permits)
        Overrides:
        release in class java.util.concurrent.Semaphore
      • availablePermits

        public int availablePermits()
        Overrides:
        availablePermits in class java.util.concurrent.Semaphore