public abstract class AbstractLatch extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractLatch.CountSync
Look at the doc and examples provided by AbstractQueuedSynchronizer for more information
|
| Modifier and Type | Field and Description |
|---|---|
protected AbstractLatch.CountSync |
control |
| Constructor and Description |
|---|
AbstractLatch() |
AbstractLatch(int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
boolean |
await(long milliseconds) |
boolean |
await(long timeWait,
TimeUnit timeUnit) |
abstract void |
countDown() |
abstract void |
countDown(int count) |
void |
countUp() |
int |
getCount() |
void |
setCount(int count) |
protected final AbstractLatch.CountSync control
public AbstractLatch()
public AbstractLatch(int count)
public int getCount()
public void setCount(int count)
public void countUp()
public abstract void countDown()
public abstract void countDown(int count)
public void await()
throws InterruptedException
InterruptedExceptionpublic boolean await(long milliseconds)
throws InterruptedException
InterruptedExceptionpublic boolean await(long timeWait,
TimeUnit timeUnit)
throws InterruptedException
InterruptedExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.