public class TimeoutStream extends Object implements ReadStream<Long>
Handler will 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 theoriginal non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description | 
|---|---|
static io.vertx.lang.rx.TypeArg<TimeoutStream> | 
__TYPE_ARG  | 
| Constructor and Description | 
|---|
TimeoutStream(Object delegate)  | 
TimeoutStream(TimeoutStream delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancel()
Cancels the timeout. 
 | 
TimeoutStream | 
endHandler(Handler<Void> endHandler)
Set an end handler. 
 | 
boolean | 
equals(Object o)  | 
TimeoutStream | 
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream. 
 | 
TimeoutStream | 
fetch(long amount)
Fetch the specified  
amount of elements. | 
TimeoutStream | 
getDelegate()  | 
TimeoutStream | 
handler(Handler<Long> handler)
Set a data handler. 
 | 
int | 
hashCode()  | 
static TimeoutStream | 
newInstance(TimeoutStream arg)  | 
TimeoutStream | 
pause()
Pause the  
ReadStream, it sets the buffer in fetch mode and clears the actual demand. | 
Pipe<Long> | 
pipe()
Pause this stream and return a  to transfer the elements of this stream to a destination . 
 | 
void | 
pipeTo(WriteStream<Long> dst)
Like  
ReadStream.pipeTo(io.vertx.rxjava.core.streams.WriteStream<T>) but with no completion handler. | 
void | 
pipeTo(WriteStream<Long> dst,
      Handler<AsyncResult<Void>> handler)
Pipe this  
ReadStream to the WriteStream. | 
Observable<Void> | 
pipeToObservable(WriteStream<Long> dst)
Deprecated. 
 
 | 
TimeoutStream | 
resume()
Resume reading, and sets the buffer in  
flowing mode. | 
Single<Void> | 
rxPipeTo(WriteStream<Long> dst)
Pipe this  
ReadStream to the WriteStream. | 
Observable<Long> | 
toObservable()  | 
String | 
toString()  | 
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstance, newInstancenewInstancepublic static final io.vertx.lang.rx.TypeArg<TimeoutStream> __TYPE_ARG
public TimeoutStream(TimeoutStream delegate)
public TimeoutStream(Object delegate)
public TimeoutStream getDelegate()
getDelegate in interface ReadStream<Long>getDelegate in interface StreamBasepublic Observable<Long> toObservable()
toObservable in interface ReadStream<Long>public Pipe<Long> pipe()
WriteStream.pipe in interface ReadStream<Long>public void pipeTo(WriteStream<Long> dst)
ReadStream.pipeTo(io.vertx.rxjava.core.streams.WriteStream<T>) but with no completion handler.pipeTo in interface ReadStream<Long>dst - public void pipeTo(WriteStream<Long> dst, Handler<AsyncResult<Void>> handler)
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.
pipeTo in interface ReadStream<Long>dst - the destination write streamhandler - @Deprecated public Observable<Void> pipeToObservable(WriteStream<Long> dst)
rxPipeTo(io.vertx.rxjava.core.streams.WriteStream<java.lang.Long>) insteadReadStream 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.
dst - the destination write streampublic Single<Void> rxPipeTo(WriteStream<Long> dst)
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.
dst - the destination write streampublic TimeoutStream exceptionHandler(Handler<Throwable> handler)
ReadStreamexceptionHandler in interface ReadStream<Long>exceptionHandler in interface StreamBasehandler - the exception handlerpublic TimeoutStream handler(Handler<Long> handler)
ReadStreamhandler in interface ReadStream<Long>public TimeoutStream pause()
ReadStreamReadStream, it sets the buffer in fetch mode and clears the actual demand.
 
 While it's paused, no data will be sent to the data handler.
pause in interface ReadStream<Long>public TimeoutStream resume()
ReadStreamflowing mode.
 
 If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<Long>public TimeoutStream fetch(long amount)
ReadStreamamount of elements. If the ReadStream has been paused, reading will
 recommence with the specified amount of items, otherwise the specified amount will
 be added to the current stream demand.fetch in interface ReadStream<Long>public TimeoutStream endHandler(Handler<Void> endHandler)
ReadStreamendHandler in interface ReadStream<Long>public void cancel()
handler(io.vertx.core.Handler<java.lang.Long>) with a null
 argument.public static TimeoutStream newInstance(TimeoutStream arg)
Copyright © 2020 Eclipse. All rights reserved.