-
- All Implemented Interfaces:
-
net.pwall.pipeline.BaseCoAcceptor,net.pwall.pipeline.CoAcceptor
public abstract class AbstractCoAcceptor<A extends Object, R extends Object> extends BaseAbstractCoAcceptor<R> implements CoAcceptor<A, R>
Abstract implementation of CoAcceptor.
-
-
Constructor Summary
Constructors Constructor Description AbstractCoAcceptor()
-
Method Summary
Modifier and Type Method Description Unitaccept(A value)Accept an object. abstract UnitacceptObject(A value)Accept a value, after closedcheck and test for end of data.-
Methods inherited from class net.pwall.pipeline.BaseAbstractCoAcceptor
close, getClosed -
Methods inherited from class net.pwall.pipeline.BaseCoAcceptor
flush, getComplete, getResult -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
accept
Unit accept(A value)
Accept an object. Check for pipeline already closed, and handle end of data. This assumes that
nullis used to indicate end of data; if that is not the case this method must be overridden or an alternative implementation of CoAcceptor used.- Parameters:
value- the input value
-
acceptObject
abstract 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
-
-
-
-