A timeout stream is triggered by a timer, the 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.
Anything
TimeoutStream
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
TimeoutStream(TimeoutStream unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
cancel | shared default void cancel() Cancels the timeout. Note this has the same effect as calling handler with a null argument. |
endHandler | shared actual default TimeoutStream endHandler(Anything()? endHandler) Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called. Refines ReadStream.endHandler |
exceptionHandler | shared actual default TimeoutStream exceptionHandler(Anything(Throwable)? handler) Set an exception handler. Refines StreamBase.exceptionHandler |
handler | shared actual default TimeoutStream handler(Anything(Integer)? handler) Set a data handler. As data is read, the handler will be called with the data. Refines ReadStream.handler |
pause | shared actual default TimeoutStream pause() Pause the Refines ReadStream.pause |
resume | shared actual default TimeoutStream resume() Resume reading. If the Refines ReadStream.resume |
Inherited Methods |
Methods inherited from: Object equals |
Methods inherited from: ReadStream<T> |
Methods inherited from: StreamBase |