Package org.redisson.misc
Class InfinitySemaphoreLatch
-
-
-
- org.redisson.misc.InfinitySemaphoreLatch
-
-
-
- All Implemented Interfaces:
public class InfinitySemaphoreLatch extends
Code parts from Manik Surtani ([email protected])- Author:
- Nikita Koksharov
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InfinitySemaphoreLatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acquire()
boolean
acquireAmount(int amount)
boolean
awaitUninterruptibly()
void
close()
boolean
isClosed()
boolean
isOpened()
void
release()
toString()
int
tryAcquireShared(int ignored)
boolean
tryReleaseShared(int state)
-
-
-
Method Detail
-
tryAcquireShared
public final int tryAcquireShared(int ignored)
- Overrides:
in class
-
tryReleaseShared
public final boolean tryReleaseShared(int state)
- Overrides:
in class
-
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 toString()
- Overrides:
in class
-
-