public final class SynchronizationBarrier extends Object
| Constructor and Description |
|---|
SynchronizationBarrier() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParty()
Increment the number of involved parties
|
boolean |
isReached()
Test if the synchronization point was reached
|
void |
reach()
Indicate that the current thread reached the synchronization barrier.
|
void |
reset()
Reset the synchronization barrier
|
void |
waitFor()
Wait for the synchronization point to be reached.
|
public void addParty()
public boolean isReached()
public void waitFor()
throws InterruptedException
InterruptedExceptionpublic void reach()
public void reset()
Copyright © 2019. All rights reserved.