Class GenericJsonObjectWriteStream<T>

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

public abstract class GenericJsonObjectWriteStream<T> extends Object implements io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
  • Constructor Details

    • GenericJsonObjectWriteStream

      public GenericJsonObjectWriteStream(Class<T> type)
  • Method Details

    • drainHandler

      public GenericJsonObjectWriteStream<T> drainHandler(io.vertx.core.Handler<Void> drainHandler)
      Specified by:
      drainHandler in interface io.vertx.core.streams.WriteStream<T>
    • setWriteQueueMaxSize

      public GenericJsonObjectWriteStream<T> setWriteQueueMaxSize(int arg0)
      Specified by:
      setWriteQueueMaxSize in interface io.vertx.core.streams.WriteStream<T>
    • writeQueueFull

      public boolean writeQueueFull()
      Specified by:
      writeQueueFull in interface io.vertx.core.streams.WriteStream<T>
    • write

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

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

      public void end(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> res)
      Specified by:
      end in interface io.vertx.core.streams.WriteStream<T>
    • end

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

      protected abstract void next(T value) throws Exception
      Throws:
      Exception
    • exceptionHandler

      public GenericJsonObjectWriteStream<T> exceptionHandler(io.vertx.core.Handler<Throwable> exceptionHandler)
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.StreamBase
      Specified by:
      exceptionHandler in interface io.vertx.core.streams.WriteStream<T>