public class BusAwareCountDownLatch extends CountDownLatch
| Modifier and Type | Class and Description |
|---|---|
static class |
BusAwareCountDownLatch.BusStoppedInterruptedException |
| Constructor and Description |
|---|
BusAwareCountDownLatch(int count,
IComponentBus bus) |
BusAwareCountDownLatch(int count,
IComponentBus bus,
IComponent... components) |
BusAwareCountDownLatch(int count,
IComponentBus bus,
cz.cuni.amis.utils.token.IToken... componentIds) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
boolean |
await(long timeout,
TimeUnit unit) |
protected void |
checkBusStop() |
void |
countDown() |
String |
toString() |
getCountpublic BusAwareCountDownLatch(int count,
IComponentBus bus)
public BusAwareCountDownLatch(int count,
IComponentBus bus,
IComponent... components)
public BusAwareCountDownLatch(int count,
IComponentBus bus,
cz.cuni.amis.utils.token.IToken... componentIds)
public void countDown()
countDown in class CountDownLatchpublic void await()
throws BusAwareCountDownLatch.BusStoppedInterruptedException,
cz.cuni.amis.utils.exception.PogamutInterruptedException
await in class CountDownLatchBusAwareCountDownLatch.BusStoppedInterruptedException - when the waiting was stopped because some component of the bus stoppedcz.cuni.amis.utils.exception.PogamutInterruptedExceptionpublic boolean await(long timeout,
TimeUnit unit)
throws BusAwareCountDownLatch.BusStoppedInterruptedException,
cz.cuni.amis.utils.exception.PogamutInterruptedException
await in class CountDownLatchtimeout - unit - BusAwareCountDownLatch.BusStoppedInterruptedException - when the waiting was stopped because some component of the bus stoppedcz.cuni.amis.utils.exception.PogamutInterruptedExceptionprotected void checkBusStop()
throws BusAwareCountDownLatch.BusStoppedInterruptedException
public String toString()
toString in class CountDownLatchCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.