Class AbstractLatch
- java.lang.Object
-
- org.apache.activemq.artemis.utils.AbstractLatch
-
- Direct Known Subclasses:
AutomaticLatch,ReusableLatch
public abstract class AbstractLatch extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAbstractLatch.CountSyncLook at the doc and examples provided by AbstractQueuedSynchronizer for more information
-
Field Summary
Fields Modifier and Type Field Description protected AbstractLatch.CountSynccontrol
-
Constructor Summary
Constructors Constructor Description AbstractLatch()AbstractLatch(int count)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidawait()booleanawait(long milliseconds)booleanawait(long timeWait, java.util.concurrent.TimeUnit timeUnit)abstract voidcountDown()abstract voidcountDown(int count)voidcountUp()intgetCount()voidsetCount(int count)
-
-
-
Field Detail
-
control
protected final AbstractLatch.CountSync control
-
-
Method Detail
-
getCount
public int getCount()
-
setCount
public void setCount(int count)
-
countUp
public void countUp()
-
countDown
public abstract void countDown()
-
countDown
public abstract void countDown(int count)
-
await
public void await() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
await
public boolean await(long milliseconds) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
await
public boolean await(long timeWait, java.util.concurrent.TimeUnit timeUnit) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-