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() |
getCount
public 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 CountDownLatch
public void await() throws BusAwareCountDownLatch.BusStoppedInterruptedException, cz.cuni.amis.utils.exception.PogamutInterruptedException
await
in class CountDownLatch
BusAwareCountDownLatch.BusStoppedInterruptedException
- when the waiting was stopped because some component of the bus stoppedcz.cuni.amis.utils.exception.PogamutInterruptedException
public boolean await(long timeout, TimeUnit unit) throws BusAwareCountDownLatch.BusStoppedInterruptedException, cz.cuni.amis.utils.exception.PogamutInterruptedException
await
in class CountDownLatch
timeout
- unit
- BusAwareCountDownLatch.BusStoppedInterruptedException
- when the waiting was stopped because some component of the bus stoppedcz.cuni.amis.utils.exception.PogamutInterruptedException
protected void checkBusStop() throws BusAwareCountDownLatch.BusStoppedInterruptedException
public String toString()
toString
in class CountDownLatch
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.