public interface NetSocketStream extends ReadStream<NetSocket>
Modifier and Type | Method and Description |
---|---|
NetSocketStream |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
NetSocketStream |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
NetSocketStream |
handler(Handler<NetSocket> handler)
Set a data handler.
|
NetSocketStream |
pause()
Pause the
ReadSupport . |
NetSocketStream |
resume()
Resume reading.
|
NetSocketStream exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<NetSocket>
exceptionHandler
in interface StreamBase
handler
- the exception handlerNetSocketStream handler(Handler<NetSocket> handler)
ReadStream
handler
in interface ReadStream<NetSocket>
NetSocketStream pause()
ReadStream
ReadSupport
. While it's paused, no data will be sent to the dataHandler
pause
in interface ReadStream<NetSocket>
NetSocketStream resume()
ReadStream
ReadSupport
has been paused, reading will recommence on it.resume
in interface ReadStream<NetSocket>
NetSocketStream endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface ReadStream<NetSocket>
Copyright © 2015. All rights reserved.