groovyx.gpars.dataflow.operator
[Java] Class CountingPoisonPill
java.lang.Object
groovyx.gpars.dataflow.operator.PoisonPill
groovyx.gpars.dataflow.operator.CountingPoisonPill
public final class CountingPoisonPill
extends PoisonPill
Represents a non-immediate PoisonPill that counts stopped operators and can be used to wait for all the operators to terminate.
- Authors:
- Vaclav Pech
poisonTrackCounter
private final PoisonTrackCounter poisonTrackCounter
-
CountingPoisonPill
public CountingPoisonPill(int count)
-
countDown
@java.lang.Override
void countDown()
-
getTermination
public Promise getTermination()
-
join
public void join()
-
join
public void join(long timeout, java.util.concurrent.TimeUnit unit)
- Retrieves the promise for termination
- Returns:
- A Promise instance that will be bound when all the requested dataflow processors have been terminated
Copyright © 2008–2013 Václav Pech. All Rights Reserved.