Class ReadStreamSubscriber<R,​J>

  • All Implemented Interfaces:
    io.vertx.core.streams.ReadStream<J>, io.vertx.core.streams.StreamBase, Flow.Subscriber<R>

    public class ReadStreamSubscriber<R,​J>
    extends Object
    implements Flow.Subscriber<R>, io.vertx.core.streams.ReadStream<J>
    • Constructor Detail

      • ReadStreamSubscriber

        public ReadStreamSubscriber​(Function<R,​J> adapter)
    • Method Detail

      • asReadStream

        public static <R,​J> io.vertx.core.streams.ReadStream<J> asReadStream​(Flow.Publisher<R> multi,
                                                                                   Function<R,​J> adapter)
      • handler

        public io.vertx.core.streams.ReadStream<J> handler​(io.vertx.core.Handler<J> handler)
        Specified by:
        handler in interface io.vertx.core.streams.ReadStream<R>
      • pause

        public io.vertx.core.streams.ReadStream<J> pause()
        Specified by:
        pause in interface io.vertx.core.streams.ReadStream<R>
      • fetch

        public io.vertx.core.streams.ReadStream<J> fetch​(long amount)
        Specified by:
        fetch in interface io.vertx.core.streams.ReadStream<R>
      • resume

        public io.vertx.core.streams.ReadStream<J> resume()
        Specified by:
        resume in interface io.vertx.core.streams.ReadStream<R>
      • endHandler

        public io.vertx.core.streams.ReadStream<J> endHandler​(io.vertx.core.Handler<Void> handler)
        Specified by:
        endHandler in interface io.vertx.core.streams.ReadStream<R>
      • exceptionHandler

        public io.vertx.core.streams.ReadStream<J> exceptionHandler​(io.vertx.core.Handler<Throwable> handler)
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.ReadStream<R>
        Specified by:
        exceptionHandler in interface io.vertx.core.streams.StreamBase