-
- All Implemented Interfaces:
-
net.pwall.pipeline.BaseCoAcceptor,net.pwall.pipeline.BaseCoPipeline,net.pwall.pipeline.CoAcceptor,net.pwall.pipeline.CoPipeline
public final class ForkCoPipeline<A extends Object, R extends Object> extends AbstractCoPipeline<A, A, R>
-
-
Field Summary
Fields Modifier and Type Field Description private final CoAcceptor<A, R>downstreamprivate final Booleanclosedprivate final Booleancompleteprivate final Rresultprivate final BooleanstageComplete
-
Constructor Summary
Constructors Constructor Description ForkCoPipeline(CoAcceptor<A, R> downstream1, CoAcceptor<A, R> downstream2)
-
Method Summary
Modifier and Type Method Description UnitacceptObject(A value)Accept a value, after closedcheck and test for end of data.-
Methods inherited from class net.pwall.pipeline.AbstractCoPipeline
close, emit, flush, getDownstream -
Methods inherited from class net.pwall.pipeline.BaseAbstractCoAcceptor
getClosed -
Methods inherited from class net.pwall.pipeline.BaseCoAcceptor
getComplete, getResult -
Methods inherited from class net.pwall.pipeline.BaseCoPipeline
getStageComplete -
Methods inherited from class net.pwall.pipeline.AbstractCoAcceptor
accept -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ForkCoPipeline
ForkCoPipeline(CoAcceptor<A, R> downstream1, CoAcceptor<A, R> downstream2)
-
-
Method Detail
-
acceptObject
Unit acceptObject(A value)
Accept a value, after
closedcheck and test for end of data. Implementing classes must supply an implementation of this method.- Parameters:
value- the input value
-
-
-
-