Class MonitoredReadStream

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

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

    • MonitoredReadStream

      public MonitoredReadStream(io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> stream, BMExecutor.BMTaskMonitor monitor)
  • Method Details

    • handler

      public MonitoredReadStream 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 MonitoredReadStream pause()
      Specified by:
      pause in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • resume

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

      public MonitoredReadStream 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 MonitoredReadStream endHandler(io.vertx.core.Handler<Void> endHandler)
      Specified by:
      endHandler in interface io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer>
    • 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>
    • toString

      public String toString()
      Overrides:
      toString in class Object