| 
org.codehaus.gpars | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectgroovyx.gpars.dataflow.operator.PoisonTrackCounter
final class PoisonTrackCounter
A helper class used by poison messages to count terminated dataflow processors
| Field Summary | |
|---|---|
        private java.util.concurrent.atomic.AtomicInteger | 
        
            counter
             | 
        
        private DataflowVariable | 
        
            termination
             | 
        
| Constructor Summary | |
            PoisonTrackCounter(int count)
             | 
        |
| Method Summary | |
|---|---|
            void
         | 
        
            countDown()
             | 
        
            Promise
         | 
        
            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)
             | 
        
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() | 
| Field Detail | 
|---|
private final java.util.concurrent.atomic.AtomicInteger counter
private final DataflowVariable termination
| Constructor Detail | 
|---|
PoisonTrackCounter(int count)
| Method Detail | 
|---|
void countDown()
public Promise getTermination()
public void join()
timeout -  the maximum time to waitunit -     the time unit of the timeout argument
public void join(long timeout, java.util.concurrent.TimeUnit unit)
Copyright © 2008–2013 Václav Pech. All Rights Reserved.