Class OfAnotherReactor<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.OfAnotherReactor<T>
All Implemented Interfaces:
io.activej.async.process.AsyncCloseable, ChannelConsumer<T>, io.activej.reactor.Reactive

public final class OfAnotherReactor<T> extends AbstractChannelConsumer<T>
  • Field Details

    • anotherReactor

      public final io.activej.reactor.Reactor anotherReactor
    • anotherReactorConsumer

      public final ChannelConsumer<T> anotherReactorConsumer
  • Constructor Details

    • OfAnotherReactor

      public OfAnotherReactor(io.activej.reactor.Reactor anotherReactor, ChannelConsumer<T> anotherReactorConsumer)
  • Method Details

    • doAccept

      protected io.activej.promise.Promise<Void> doAccept(@Nullable T value)
      Specified by:
      doAccept in class AbstractChannelConsumer<T>
    • onClosed

      protected void onClosed(Exception e)
      Overrides:
      onClosed in class io.activej.async.process.AbstractAsyncCloseable