A - the accepted (input) value typeE - the emitted (downstream) value typeR - the result typepublic abstract class AbstractPipeline<A,E,R> extends AbstractAcceptor<A,R> implements Pipeline<A,E,R>
Pipeline.| Constructor and Description |
|---|
AbstractPipeline(Acceptor<? super E,? extends R> downstream)
Construct an
AbstractPipeline with the given downstream Acceptor. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the pipeline.
|
void |
emit(E value)
Emit a value to the downstream
IntAcceptor. |
void |
flush()
Propagate the flush operation to the downstream acceptor.
|
Acceptor<? super E,? extends R> |
getDownstream()
Get the downstream
Acceptor |
accept, accept, acceptObjectisClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResult, isComplete, isStageCompleteisClosed, safeClosepublic Acceptor<? super E,? extends R> getDownstream()
AcceptorgetDownstream in interface BasePipeline<R>Acceptorpublic void close()
throws Exception
close in interface AutoCloseableclose in class BaseAbstractAcceptor<R>Exception - if thrown by the downstream or superclass close() functionspublic void emit(E value)
IntAcceptor.public void flush()
flush in interface BaseAcceptor<R>Copyright © 2025. All rights reserved.