Package io.activej.csp.consumer
Class AbstractChannelConsumer<T>
java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.async.process.AbstractAsyncCloseable
io.activej.csp.consumer.AbstractChannelConsumer<T>
- All Implemented Interfaces:
io.activej.async.process.AsyncCloseable,ChannelConsumer<T>,io.activej.reactor.Reactive
- Direct Known Subclasses:
ChannelFileWriter,OfAnotherReactor,OfAsyncConsumer,OfConsumer,OfException,OfLazyProvider,OfOutputStream,OfPromise,Recycling
public abstract class AbstractChannelConsumer<T>
extends io.activej.async.process.AbstractAsyncCloseable
implements ChannelConsumer<T>
-
Field Summary
Fields inherited from class io.activej.reactor.AbstractReactive
reactorFields 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, getCloseable, getException, isClosed, onCleanup, onClosed, sanitize, setCloseableMethods inherited from class io.activej.reactor.AbstractReactive
getReactorMethods 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.consumer.ChannelConsumer
acceptAll, acceptAll, acceptAll, acceptEndOfStream, async, filter, map, mapAsync, peek, transformWith, withAcknowledgement, withExecutor
-
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>
-