public interface ReadSupport<T,M> extends ExceptionSupport<T>
Handler
which is notified once data was read.
It also allows to pause reading and resume later.Modifier and Type | Method and Description |
---|---|
T |
dataHandler(Handler<M> handler)
Set a data handler.
|
T |
pause()
Pause the
ReadSupport . |
T |
resume()
Resume reading.
|
exceptionHandler
T dataHandler(Handler<M> handler)
T pause()
ReadSupport
. While it's paused, no data will be sent to the dataHandler
T resume()
ReadSupport
has been paused, reading will recommence on it.