Class TimeoutStream
- java.lang.Object
- 
- io.vertx.mutiny.core.TimeoutStream
 
- 
- All Implemented Interfaces:
- ReadStream<Long>,- StreamBase
 
 public class TimeoutStream extends Object implements ReadStream<Long> A timeout stream is triggered by a timer, theHandlerwill be call when the timer is fired, it can be once or several times depending on the nature of the timer related to this stream. The will be called after the timer handler has been called.Pausing the timer inhibits the timer shots until the stream is resumed. Setting a null handler callback cancels the timer. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
- 
- 
Field SummaryFields Modifier and Type Field Description static TypeArg<TimeoutStream>__TYPE_ARG
 - 
Constructor SummaryConstructors Constructor Description TimeoutStream(io.vertx.core.TimeoutStream delegate)TimeoutStream(Object delegate)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()TimeoutStreamendHandler(Runnable endHandler)booleanequals(Object o)TimeoutStreamexceptionHandler(Consumer<Throwable> handler)TimeoutStreamfetch(long amount)io.vertx.core.TimeoutStreamgetDelegate()TimeoutStreamhandler(Consumer<Long> handler)inthashCode()static TimeoutStreamnewInstance(io.vertx.core.TimeoutStream arg)TimeoutStreampause()Pipe<Long>pipe()io.smallrye.mutiny.Uni<Void>pipeTo(WriteStream<Long> dst)Pipe thisReadStreamto theWriteStream.VoidpipeToAndAwait(WriteStream<Long> dst)Blocking variant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStream.) voidpipeToAndForget(WriteStream<Long> dst)Variant ofio.vertx.mutiny.core.streams.ReadStream#pipeTo(io.vertx.mutiny.core.streams.WriteStreamthat ignores the result of the operation.) TimeoutStreamresume()Iterable<Long>toBlockingIterable()Stream<Long>toBlockingStream()io.smallrye.mutiny.Multi<Long>toMulti()StringtoString()
 
- 
- 
- 
Field Detail- 
__TYPE_ARGpublic static final TypeArg<TimeoutStream> __TYPE_ARG 
 
- 
 - 
Constructor Detail- 
TimeoutStreampublic TimeoutStream(io.vertx.core.TimeoutStream delegate) 
 - 
TimeoutStreampublic TimeoutStream(Object delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic io.vertx.core.TimeoutStream getDelegate() - Specified by:
- getDelegatein interface- ReadStream<Long>
- Specified by:
- getDelegatein interface- StreamBase
 
 - 
pipepublic Pipe<Long> pipe() - Specified by:
- pipein interface- ReadStream<Long>
- Returns:
- a pipe
 
 - 
pipeTo@CheckReturnValue public io.smallrye.mutiny.Uni<Void> pipeTo(WriteStream<Long> dst) Pipe 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 interface- ReadStream<Long>
- Parameters:
- dst- the destination write stream
- Returns:
- the unifiring the result of the operation when completed, or a failure if the operation failed.
 
 - 
pipeToAndAwaitpublic Void pipeToAndAwait(WriteStream<Long> dst) Blocking 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 interface- ReadStream<Long>
- Parameters:
- dst- the destination write stream
- Returns:
- the Void instance produced by the operation.
 
 - 
pipeToAndForgetpublic void pipeToAndForget(WriteStream<Long> dst) Variant 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 interface- ReadStream<Long>
- Parameters:
- dst- the destination write stream
 
 - 
exceptionHandlerpublic TimeoutStream exceptionHandler(Consumer<Throwable> handler) - Specified by:
- exceptionHandlerin interface- ReadStream<Long>
- Specified by:
- exceptionHandlerin interface- StreamBase
- Parameters:
- handler- the exception handler
- Returns:
 
 - 
handlerpublic TimeoutStream handler(Consumer<Long> handler) - Specified by:
- handlerin interface- ReadStream<Long>
- Returns:
 
 - 
pausepublic TimeoutStream pause() - Specified by:
- pausein interface- ReadStream<Long>
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
resumepublic TimeoutStream resume() - Specified by:
- resumein interface- ReadStream<Long>
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
fetchpublic TimeoutStream fetch(long amount) - Specified by:
- fetchin interface- ReadStream<Long>
- Returns:
- a reference to this, so the API can be used fluently
 
 - 
endHandlerpublic TimeoutStream endHandler(Runnable endHandler) - Specified by:
- endHandlerin interface- ReadStream<Long>
- Returns:
 
 - 
cancelpublic void cancel() 
 - 
toMulti@CheckReturnValue public io.smallrye.mutiny.Multi<Long> toMulti() - Specified by:
- toMultiin interface- ReadStream<Long>
 
 - 
newInstancepublic static TimeoutStream newInstance(io.vertx.core.TimeoutStream arg) 
 
- 
 
-