Class InfinitySemaphoreLatch

All Implemented Interfaces:
Serializable

public class InfinitySemaphoreLatch extends AbstractQueuedSynchronizer
Code parts from Manik Surtani ([email protected])
Author:
Nikita Koksharov
See Also:
  • Constructor Details

    • InfinitySemaphoreLatch

      public InfinitySemaphoreLatch()
  • Method Details

    • tryAcquireShared

      public final int tryAcquireShared(int ignored)
      Overrides:
      tryAcquireShared in class AbstractQueuedSynchronizer
    • tryReleaseShared

      public final boolean tryReleaseShared(int state)
      Overrides:
      tryReleaseShared in class AbstractQueuedSynchronizer
    • acquireAmount

      public final boolean acquireAmount(int amount)
    • acquire

      public final boolean acquire()
    • release

      public final void release()
    • isOpened

      public boolean isOpened()
    • isClosed

      public boolean isClosed()
    • close

      public void close()
    • awaitUninterruptibly

      public final boolean awaitUninterruptibly()
    • toString

      public String toString()
      Overrides:
      toString in class AbstractQueuedSynchronizer