Class TcpEventBusBridge
- java.lang.Object
-
- io.vertx.reactivex.ext.eventbus.bridge.tcp.TcpEventBusBridge
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<TcpEventBusBridge>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description TcpEventBusBridge(TcpEventBusBridge delegate)
TcpEventBusBridge(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the current socket.void
close(Handler<AsyncResult<Void>> handler)
Close the current socket.static TcpEventBusBridge
create(Vertx vertx)
static TcpEventBusBridge
create(Vertx vertx, BridgeOptions options)
static TcpEventBusBridge
create(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions)
static TcpEventBusBridge
create(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions, Handler<BridgeEvent> eventHandler)
boolean
equals(Object o)
TcpEventBusBridge
getDelegate()
int
hashCode()
TcpEventBusBridge
listen()
Listen on default port 7000 with a handler to report the state of the socket listen operation.TcpEventBusBridge
listen(int port)
Listen on specific portTcpEventBusBridge
listen(int port, Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on specific portTcpEventBusBridge
listen(int port, String address)
Listen on specific port and bind to specific addressTcpEventBusBridge
listen(int port, String address, Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on specific port and bind to specific addressTcpEventBusBridge
listen(Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on default port 7000 with a handler to report the state of the socket listen operation.static TcpEventBusBridge
newInstance(TcpEventBusBridge arg)
io.reactivex.Completable
rxClose()
Close the current socket.io.reactivex.Single<TcpEventBusBridge>
rxListen()
Listen on default port 7000 with a handler to report the state of the socket listen operation.io.reactivex.Single<TcpEventBusBridge>
rxListen(int port)
Listen on specific portio.reactivex.Single<TcpEventBusBridge>
rxListen(int port, String address)
Listen on specific port and bind to specific addressString
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<TcpEventBusBridge> __TYPE_ARG
-
-
Constructor Detail
-
TcpEventBusBridge
public TcpEventBusBridge(TcpEventBusBridge delegate)
-
TcpEventBusBridge
public TcpEventBusBridge(Object delegate)
-
-
Method Detail
-
getDelegate
public TcpEventBusBridge getDelegate()
-
create
public static TcpEventBusBridge create(Vertx vertx)
-
create
public static TcpEventBusBridge create(Vertx vertx, BridgeOptions options)
-
create
public static TcpEventBusBridge create(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions)
-
create
public static TcpEventBusBridge create(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions, Handler<BridgeEvent> eventHandler)
-
listen
public TcpEventBusBridge listen(Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on default port 7000 with a handler to report the state of the socket listen operation.- Parameters:
handler
- the result handler- Returns:
- self
-
listen
public TcpEventBusBridge listen()
Listen on default port 7000 with a handler to report the state of the socket listen operation.- Returns:
- self
-
rxListen
public io.reactivex.Single<TcpEventBusBridge> rxListen()
Listen on default port 7000 with a handler to report the state of the socket listen operation.- Returns:
- self
-
listen
public TcpEventBusBridge listen(int port, String address, Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on specific port and bind to specific address- Parameters:
port
- tcp portaddress
- tcp address to the bindhandler
- the result handler- Returns:
- self
-
listen
public TcpEventBusBridge listen(int port, String address)
Listen on specific port and bind to specific address- Parameters:
port
- tcp portaddress
- tcp address to the bind- Returns:
- self
-
rxListen
public io.reactivex.Single<TcpEventBusBridge> rxListen(int port, String address)
Listen on specific port and bind to specific address- Parameters:
port
- tcp portaddress
- tcp address to the bind- Returns:
- self
-
listen
public TcpEventBusBridge listen(int port, Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on specific port- Parameters:
port
- tcp porthandler
- the result handler- Returns:
- self
-
listen
public TcpEventBusBridge listen(int port)
Listen on specific port- Parameters:
port
- tcp port- Returns:
- self
-
rxListen
public io.reactivex.Single<TcpEventBusBridge> rxListen(int port)
Listen on specific port- Parameters:
port
- tcp port- Returns:
- self
-
close
public void close(Handler<AsyncResult<Void>> handler)
Close the current socket.- Parameters:
handler
- the result handler
-
close
public void close()
Close the current socket.
-
rxClose
public io.reactivex.Completable rxClose()
Close the current socket.- Returns:
-
newInstance
public static TcpEventBusBridge newInstance(TcpEventBusBridge arg)
-
-