Class RowStream<T>
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.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 theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<RowStream>__TYPE_ARGTypeArg<T>__typeArg_0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>close()Close the stream and release the resources.VoidcloseAndAwait()Blocking variant ofclose().voidcloseAndForget()Variant ofclose()that ignores the result of the operation.RowStream<T>endHandler(Runnable endHandler)booleanequals(Object o)RowStream<T>exceptionHandler(Consumer<Throwable> handler)RowStream<T>fetch(long l)io.vertx.sqlclient.RowStreamgetDelegate()RowStream<T>handler(Consumer<T> handler)inthashCode()static <T> RowStream<T>newInstance(io.vertx.sqlclient.RowStream arg)static <T> RowStream<T>newInstance(io.vertx.sqlclient.RowStream arg, TypeArg<T> __typeArg_T)RowStream<T>pause()Pipe<T>pipe()io.smallrye.mutiny.Uni<Void>pipeTo(WriteStream<T> dst)Pipe thisReadStreamto theWriteStream.VoidpipeToAndAwait(WriteStream<T> dst)Blocking variant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream.) voidpipeToAndForget(WriteStream<T> dst)Variant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStreamthat ignores the result of the operation.) RowStream<T>resume()Iterable<T>toBlockingIterable()Stream<T>toBlockingStream()io.smallrye.mutiny.Multi<T>toMulti()StringtoString()
-
-
-
Method Detail
-
getDelegate
public io.vertx.sqlclient.RowStream getDelegate()
- Specified by:
getDelegatein interfaceReadStream<T>- Specified by:
getDelegatein interfaceStreamBase
-
pipe
public Pipe<T> pipe()
- Specified by:
pipein interfaceReadStream<T>- Returns:
- a pipe
-
pipeTo
public io.smallrye.mutiny.Uni<Void> pipeTo(WriteStream<T> dst)
Description copied from interface:ReadStreamPipe thisReadStreamto theWriteStream.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
handlerwill 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:
pipeToin interfaceReadStream<T>- Parameters:
dst- the destination write stream- Returns:
- the
unifiring 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:ReadStreamBlocking variant ofio.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:
pipeToAndAwaitin interfaceReadStream<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:ReadStreamVariant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStreamthat 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.WriteStreambut you don't need to compose it with other operations.) - Specified by:
pipeToAndForgetin interfaceReadStream<T>- Parameters:
dst- the destination write stream
-
exceptionHandler
public RowStream<T> exceptionHandler(Consumer<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceReadStream<T>- Specified by:
exceptionHandlerin interfaceStreamBase- Parameters:
handler- the exception handler- Returns:
-
handler
public RowStream<T> handler(Consumer<T> handler)
- Specified by:
handlerin interfaceReadStream<T>- Returns:
-
pause
public RowStream<T> pause()
- Specified by:
pausein interfaceReadStream<T>- Returns:
- a reference to this, so the API can be used fluently
-
resume
public RowStream<T> resume()
- Specified by:
resumein interfaceReadStream<T>- Returns:
- a reference to this, so the API can be used fluently
-
endHandler
public RowStream<T> endHandler(Runnable endHandler)
- Specified by:
endHandlerin interfaceReadStream<T>- Returns:
-
fetch
public RowStream<T> fetch(long l)
- Specified by:
fetchin interfaceReadStream<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
unifiring the result of the operation when completed, or a failure if the operation failed.
-
closeAndAwait
public Void closeAndAwait()
Blocking variant ofclose().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()
-
toMulti
public io.smallrye.mutiny.Multi<T> toMulti()
- Specified by:
toMultiin interfaceReadStream<T>
-
newInstance
public static <T> RowStream<T> newInstance(io.vertx.sqlclient.RowStream arg)
-
-