Class RowStream<T>

  • All Implemented Interfaces:
    ReadStream<T>, StreamBase

    public class RowStream<T>
    extends Object
    implements ReadStream<T>
    A row oriented stream.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • RowStream

        public RowStream​(io.vertx.sqlclient.RowStream delegate)
      • RowStream

        public RowStream​(Object delegate,
                         TypeArg<T> typeArg_0)
      • RowStream

        public RowStream​(io.vertx.sqlclient.RowStream delegate,
                         TypeArg<T> typeArg_0)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • pipeTo

        public io.smallrye.mutiny.Uni<Void> pipeTo​(WriteStream<T> dst)
        Description copied from interface: ReadStream
        Pipe this ReadStream to the WriteStream.

        Elements emitted by this stream will be written to the write stream until this stream ends or fails.

        Once this stream has ended or failed, the write stream will be ended and the handler will be called with the result.

        Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

        Specified by:
        pipeTo in interface ReadStream<T>
        Parameters:
        dst - the destination write stream
        Returns:
        the uni firing the result of the operation when completed, or a failure if the operation failed.
      • pipeToAndAwait

        public Void pipeToAndAwait​(WriteStream<T> dst)
        Description copied from interface: ReadStream
        Blocking variant of io.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream).

        This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

        Specified by:
        pipeToAndAwait in interface ReadStream<T>
        Parameters:
        dst - the destination write stream
        Returns:
        the Void instance produced by the operation.
      • pipeToAndForget

        public void pipeToAndForget​(WriteStream<T> dst)
        Description copied from interface: ReadStream
        Variant of io.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream) that ignores the result of the operation.

        This method subscribes on the result of io.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from io.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream) but you don't need to compose it with other operations.

        Specified by:
        pipeToAndForget in interface ReadStream<T>
        Parameters:
        dst - the destination write stream
      • pause

        public RowStream<T> pause()
        Specified by:
        pause in interface ReadStream<T>
        Returns:
        a reference to this, so the API can be used fluently
      • resume

        public RowStream<T> resume()
        Specified by:
        resume in interface ReadStream<T>
        Returns:
        a reference to this, so the API can be used fluently
      • fetch

        public RowStream<T> fetch​(long l)
        Specified by:
        fetch in interface ReadStream<T>
        Returns:
        a reference to this, so the API can be used fluently
      • close

        public io.smallrye.mutiny.Uni<Void> close()
        Close the stream and release the resources.

        Unlike the bare Vert.x variant, this method returns a Uni. Don't forget to subscribe on it to trigger the operation.

        Returns:
        the uni firing the result of the operation when completed, or a failure if the operation failed.
      • closeAndAwait

        public Void closeAndAwait()
        Blocking variant of close().

        This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).

        Returns:
        the Void instance produced by the operation.
      • closeAndForget

        public void closeAndForget()
        Variant of close() that ignores the result of the operation.

        This method subscribes on the result of close(), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation from close() but you don't need to compose it with other operations.

      • toMulti

        public io.smallrye.mutiny.Multi<T> toMulti()
        Specified by:
        toMulti in interface ReadStream<T>
      • toBlockingIterable

        public Iterable<T> toBlockingIterable()
      • toBlockingStream

        public Stream<T> toBlockingStream()
      • newInstance

        public static <T> RowStream<T> newInstance​(io.vertx.sqlclient.RowStream arg)
      • newInstance

        public static <T> RowStream<T> newInstance​(io.vertx.sqlclient.RowStream arg,
                                                   TypeArg<T> __typeArg_T)