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
InterruptedException
public boolean await(long milliseconds) throws InterruptedException
InterruptedException
public boolean await(long timeWait, TimeUnit timeUnit) throws InterruptedException
InterruptedException
Copyright © 2021 JBoss by Red Hat. All rights reserved.