Class VertxStreamProducer

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

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

    • VertxStreamProducer

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

    • exceptionHandler

      public VertxStreamProducer exceptionHandler(io.vertx.core.Handler<Throwable> handler)
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.StreamBase
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • setWriteQueueMaxSize

      public VertxStreamProducer setWriteQueueMaxSize(int maxSize)
      Specified by:
      setWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • writeQueueFull

      public boolean writeQueueFull()
      Specified by:
      writeQueueFull in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • drainHandler

      public VertxStreamProducer drainHandler(io.vertx.core.Handler<Void> handler)
      Specified by:
      drainHandler in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • write

      public io.vertx.core.Future<Void> write(io.vertx.core.buffer.Buffer data)
      Specified by:
      write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • drain

      protected void drain()
    • sendEnd

      public void sendEnd()
    • stream

      public static void stream(io.vertx.core.Vertx vertx, String controlAdr, io.vertx.core.streams.ReadStream<io.vertx.core.buffer.Buffer> bodyStream)
    • closed

      public void closed()
    • write

      public void write(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      write in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • end

      public io.vertx.core.Future<Void> end()
      Specified by:
      end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • end

      public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
      Specified by:
      end in interface io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
    • markQueueFull

      public void markQueueFull()