Class RowStream<T>

  • All Implemented Interfaces:
    io.vertx.mutiny.core.streams.ReadStream<T>, io.vertx.mutiny.core.streams.StreamBase

    public class RowStream<T>
    extends Object
    implements io.vertx.mutiny.core.streams.ReadStream<T>
    A row oriented stream.

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

    • Field Detail

      • __TYPE_ARG

        public static final io.smallrye.mutiny.vertx.TypeArg<RowStream> __TYPE_ARG
      • __typeArg_0

        public final io.smallrye.mutiny.vertx.TypeArg<T> __typeArg_0
    • Constructor Detail

      • RowStream

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

        public RowStream​(Object delegate,
                         io.smallrye.mutiny.vertx.TypeArg<T> typeArg_0)
      • RowStream

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

      • getDelegate

        public io.vertx.sqlclient.RowStream getDelegate()
        Specified by:
        getDelegate in interface io.vertx.mutiny.core.streams.ReadStream<T>
        Specified by:
        getDelegate in interface io.vertx.mutiny.core.streams.StreamBase
      • hashCode

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

        public io.vertx.mutiny.core.streams.Pipe<T> pipe()
        Specified by:
        pipe in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • pipeTo

        @CheckReturnValue
        public io.smallrye.mutiny.Uni<Void> pipeTo​(io.vertx.mutiny.core.streams.WriteStream<T> dst)
        Specified by:
        pipeTo in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • pipeToAndAwait

        public Void pipeToAndAwait​(io.vertx.mutiny.core.streams.WriteStream<T> dst)
        Specified by:
        pipeToAndAwait in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • pipeToAndForget

        public void pipeToAndForget​(io.vertx.mutiny.core.streams.WriteStream<T> dst)
        Specified by:
        pipeToAndForget in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • exceptionHandler

        public RowStream<T> exceptionHandler​(Consumer<Throwable> handler)
        Specified by:
        exceptionHandler in interface io.vertx.mutiny.core.streams.ReadStream<T>
        Specified by:
        exceptionHandler in interface io.vertx.mutiny.core.streams.StreamBase
      • handler

        public RowStream<T> handler​(Consumer<T> handler)
        Specified by:
        handler in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • pause

        public RowStream<T> pause()
        Specified by:
        pause in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • resume

        public RowStream<T> resume()
        Specified by:
        resume in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • endHandler

        public RowStream<T> endHandler​(Runnable endHandler)
        Specified by:
        endHandler in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • fetch

        public RowStream<T> fetch​(long l)
        Specified by:
        fetch in interface io.vertx.mutiny.core.streams.ReadStream<T>
      • close

        @CheckReturnValue
        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

        @CheckReturnValue
        public io.smallrye.mutiny.Multi<T> toMulti()
        Specified by:
        toMulti in interface io.vertx.mutiny.core.streams.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,
                                                   io.smallrye.mutiny.vertx.TypeArg<T> __typeArg_T)