Class OfAsyncConsumer<T>

java.lang.Object
io.activej.reactor.AbstractReactive
io.activej.reactor.ImplicitlyReactive
io.activej.async.process.AbstractAsyncCloseable
io.activej.csp.consumer.AbstractChannelConsumer<T>
io.activej.csp.consumer.impl.OfAsyncConsumer<T>
All Implemented Interfaces:
io.activej.async.process.AsyncCloseable, ChannelConsumer<T>, io.activej.reactor.Reactive

public final class OfAsyncConsumer<T> extends AbstractChannelConsumer<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final io.activej.async.function.AsyncConsumer<T>
     

    Fields inherited from class io.activej.reactor.AbstractReactive

    reactor

    Fields inherited from interface io.activej.async.process.AsyncCloseable

    STATIC
  • Constructor Summary

    Constructors
    Constructor
    Description
    OfAsyncConsumer(io.activej.async.function.AsyncConsumer<T> consumer, @Nullable io.activej.async.process.AsyncCloseable closeable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.activej.promise.Promise<Void>
    doAccept(T value)
     

    Methods inherited from class io.activej.csp.consumer.AbstractChannelConsumer

    accept

    Methods inherited from class io.activej.async.process.AbstractAsyncCloseable

    closeEx, doSanitize, getCloseable, getException, isClosed, onCleanup, onClosed, sanitize, setCloseable

    Methods inherited from class io.activej.reactor.AbstractReactive

    getReactor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.activej.async.process.AsyncCloseable

    close, closeEx
  • Field Details

    • consumer

      public final io.activej.async.function.AsyncConsumer<T> consumer
  • Constructor Details

    • OfAsyncConsumer

      public OfAsyncConsumer(io.activej.async.function.AsyncConsumer<T> consumer, @Nullable @Nullable io.activej.async.process.AsyncCloseable closeable)
  • Method Details