Package io.activej.csp
Class AbstractChannelConsumer<T>
java.lang.Object
io.activej.async.process.AbstractAsyncCloseable
io.activej.csp.AbstractChannelConsumer<T>
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,ChannelConsumer<T>
- Direct Known Subclasses:
ChannelFileWriter,RecyclingChannelConsumer
public abstract class AbstractChannelConsumer<T>
extends io.activej.async.process.AbstractAsyncCloseable
implements ChannelConsumer<T>
-
Field Summary
FieldsFields inherited from class io.activej.async.process.AbstractAsyncCloseable
eventloopFields inherited from interface io.activej.async.process.AsyncCloseable
STATIC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractChannelConsumer(@Nullable io.activej.async.process.AsyncCloseable closeable) -
Method Summary
Methods inherited from class io.activej.async.process.AbstractAsyncCloseable
closeEx, doSanitize, getException, isClosed, onCleanup, onClosed, sanitize, setCloseableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.async.process.AsyncCloseable
close, closeExMethods inherited from interface io.activej.csp.ChannelConsumer
acceptAll, acceptAll, acceptAll, acceptEndOfStream, async, filter, map, mapAsync, peek, transformWith, withAcknowledgement, withExecutor
-
Field Details
-
CHECK
protected static final boolean CHECK
-
-
Constructor Details
-
AbstractChannelConsumer
protected AbstractChannelConsumer() -
AbstractChannelConsumer
protected AbstractChannelConsumer(@Nullable @Nullable io.activej.async.process.AsyncCloseable closeable)
-
-
Method Details
-
doAccept
-
accept
Description copied from interface:ChannelConsumerConsumes a provided value and returns aPromiseas a marker of success.- Specified by:
acceptin interfaceChannelConsumer<T>
-