public class NetSocketStream extends Object implements ReadStream<NetSocket>
ReadStream
of NetSocket
, used for notifying
socket connections to a NetServer
.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
NetSocketStream(NetSocketStream delegate) |
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.
|
Object |
getDelegate() |
NetSocketStream |
handler(Handler<NetSocket> handler)
Set a data handler.
|
static NetSocketStream |
newInstance(NetSocketStream arg) |
NetSocketStream |
pause()
Pause the
ReadSupport . |
NetSocketStream |
resume()
Resume reading.
|
Observable<NetSocket> |
toObservable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newInstance
newInstance
public NetSocketStream(NetSocketStream delegate)
public Object getDelegate()
getDelegate
in interface ReadStream<NetSocket>
getDelegate
in interface StreamBase
public Observable<NetSocket> toObservable()
toObservable
in interface ReadStream<NetSocket>
public NetSocketStream exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface ReadStream<NetSocket>
exceptionHandler
in interface StreamBase
handler
- the exception handlerpublic NetSocketStream handler(Handler<NetSocket> handler)
ReadStream
handler
in interface ReadStream<NetSocket>
public NetSocketStream pause()
ReadStream
ReadSupport
. While it's paused, no data will be sent to the dataHandler
pause
in interface ReadStream<NetSocket>
public NetSocketStream resume()
ReadStream
ReadSupport
has been paused, reading will recommence on it.resume
in interface ReadStream<NetSocket>
public NetSocketStream endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface ReadStream<NetSocket>
public static NetSocketStream newInstance(NetSocketStream arg)
Copyright © 2016. All rights reserved.