A helper class used by poison messages to count terminated dataflow processors
Modifiers | Name | Description |
---|---|---|
private java.util.concurrent.atomic.AtomicInteger |
counter |
|
private DataflowVariable<java.lang.Boolean> |
termination |
Constructor and description |
---|
PoisonTrackCounter
(int count) |
Type | Name and description |
---|---|
void |
countDown() |
Promise<java.lang.Boolean> |
getTermination() |
void |
join() Blocks until the number of terminated operators reaches the number specified in the constructor |
void |
join(long timeout, java.util.concurrent.TimeUnit unit) Blocks until the number of terminated operators reaches the number specified in the constructor |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Blocks until the number of terminated operators reaches the number specified in the constructor
Blocks until the number of terminated operators reaches the number specified in the constructor
timeout
- the maximum time to waitunit
- the time unit of the timeout
argumentCopyright © 2008–2014 Václav Pech. All Rights Reserved.