public class AnyCyclicBarrier extends Object
parties threads to call
await, at which point all parties will proceed.
If the barrier is broken, a HydraRunTimeException will be thrown from all
waiting threads. Future attempts to use the cyclic barrier in any VM will
also throw an exception| Modifier | Constructor and Description |
|---|---|
protected |
AnyCyclicBarrier(int parties,
String lockName) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
static AnyCyclicBarrier |
lookup(int parties,
String name) |
protected AnyCyclicBarrier(int parties,
String lockName)
public static AnyCyclicBarrier lookup(int parties, String name)
public void await()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.