public class BarrierEvent extends Object
| Constructor and Description |
|---|
BarrierEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Wait forever until the signal is received.
|
boolean |
await(long timeout)
Wait specified time in milliseconds.
|
void |
reset() |
void |
signal() |
void |
signalAll() |
public void await()
throws InterruptedException
InterruptedException - if interrupted.public boolean await(long timeout)
throws InterruptedException
timeout: - the time in millisecond to wait.InterruptedException - if interrupted.public void reset()
public void signal()
public void signalAll()
Copyright © 2021. All rights reserved.