-
- All Implemented Interfaces:
-
net.pwall.pipeline.BaseCoAcceptor,net.pwall.pipeline.BaseCoPipeline,net.pwall.pipeline.CoAcceptor,net.pwall.pipeline.CoPipeline
public abstract class AbstractCoPipeline<A extends Object, E extends Object, R extends Object> extends AbstractCoAcceptor<A, R> implements CoPipeline<A, E, R>
Abstract implementation of CoPipeline.
-
-
Field Summary
Fields Modifier and Type Field Description private final CoAcceptor<E, R>downstreamprivate final Booleanclosedprivate final Booleancompleteprivate final Rresultprivate final BooleanstageComplete
-
Constructor Summary
Constructors Constructor Description AbstractCoPipeline(CoAcceptor<E, R> downstream)
-
Method Summary
Modifier and Type Method Description CoAcceptor<E, R>getDownstream()Unitclose()Close the pipeline. Unitemit(E value)Emit a value to the downstream CoAcceptor. Unitflush()Propagate the flush operation to the downstream acceptor. -
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, acceptObject -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractCoPipeline
AbstractCoPipeline(CoAcceptor<E, R> downstream)
-
-
Method Detail
-
getDownstream
CoAcceptor<E, R> getDownstream()
-
emit
Unit emit(E value)
Emit a value to the downstream CoAcceptor.
- Parameters:
value- the value to be forwarded
-
-
-
-