Class VertxStreamConsumer

java.lang.Object
net.bluemind.core.rest.vertx.VertxStreamConsumer
All Implemented Interfaces:
io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, io.vertx.core.streams.StreamBase, Stream

public class VertxStreamConsumer extends Object implements io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>, Stream
  • Constructor Details

    • VertxStreamConsumer

      public VertxStreamConsumer(io.vertx.core.Vertx vertx, String streamAddress)
  • Method Details

    • handler

      public VertxStreamConsumer handler(io.vertx.core.Handler<io.vertx.core.buffer.Buffer> handler)
      Specified by:
      handler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • pause

      public VertxStreamConsumer pause()
      Specified by:
      pause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • resume

      public VertxStreamConsumer resume()
      Specified by:
      resume in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • exceptionHandler

      public VertxStreamConsumer exceptionHandler(io.vertx.core.Handler<Throwable> handler)
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.StreamBase
    • endHandler

      public VertxStreamConsumer endHandler(io.vertx.core.Handler<Void> endHandler)
      Specified by:
      endHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • pushData

      public void pushData(io.vertx.core.buffer.Buffer data)
    • pushEnd

      public void pushEnd()
    • fail

      public void fail(Throwable e)
    • fetch

      public io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> fetch(long amount)
      Specified by:
      fetch in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>