-
- All Implemented Interfaces:
-
net.pwall.pipeline.BaseCoAcceptor,net.pwall.pipeline.CoAcceptor
public final class ChannelCoAcceptor<A extends Object> extends AbstractCoAcceptor<A, Unit>
An implementation of CoAcceptor that sends the value to a SendChannel.
-
-
Constructor Summary
Constructors Constructor Description ChannelCoAcceptor(SendChannel<A> channel)
-
Method Summary
Modifier and Type Method Description UnitgetResult()UnitacceptObject(A value)Accept a value, after closedcheck and test for end of data.Unitclose()Close the acceptor. -
Methods inherited from class net.pwall.pipeline.BaseAbstractCoAcceptor
getClosed -
Methods inherited from class net.pwall.pipeline.BaseCoAcceptor
flush, getComplete -
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
-
ChannelCoAcceptor
ChannelCoAcceptor(SendChannel<A> channel)
-
-
-
-