public class ResettableBarrier extends Object
| Constructor and Description |
|---|
ResettableBarrier() |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
boolean |
await(long timeout,
TimeUnit unit) |
void |
closeBarrier() |
void |
openBarrier() |
public void await()
throws InterruptedException
InterruptedExceptionpublic boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void openBarrier()
public void closeBarrier()
Copyright © 2021 The Apache Software Foundation. All rights reserved.