Class TcpEventBusBridge
- java.lang.Object
-
- io.vertx.rxjava.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 voidclose()Close the current socket.voidclose(Handler<AsyncResult<Void>> handler)Close the current socket.static TcpEventBusBridgecreate(Vertx vertx)static TcpEventBusBridgecreate(Vertx vertx, BridgeOptions options)static TcpEventBusBridgecreate(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions)static TcpEventBusBridgecreate(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions, Handler<BridgeEvent> eventHandler)booleanequals(Object o)TcpEventBusBridgegetDelegate()inthashCode()TcpEventBusBridgelisten()Listen on default port 7000 with a handler to report the state of the socket listen operation.TcpEventBusBridgelisten(int port)Listen on specific portTcpEventBusBridgelisten(int port, Handler<AsyncResult<TcpEventBusBridge>> handler)Listen on specific portTcpEventBusBridgelisten(int port, String address)Listen on specific port and bind to specific addressTcpEventBusBridgelisten(int port, String address, Handler<AsyncResult<TcpEventBusBridge>> handler)Listen on specific port and bind to specific addressTcpEventBusBridgelisten(Handler<AsyncResult<TcpEventBusBridge>> handler)Listen on default port 7000 with a handler to report the state of the socket listen operation.static TcpEventBusBridgenewInstance(TcpEventBusBridge arg)rx.Single<Void>rxClose()Close the current socket.rx.Single<TcpEventBusBridge>rxListen()Listen on default port 7000 with a handler to report the state of the socket listen operation.rx.Single<TcpEventBusBridge>rxListen(int port)Listen on specific portrx.Single<TcpEventBusBridge>rxListen(int port, String address)Listen on specific port and bind to specific addressStringtoString()
-
-
-
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 rx.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 rx.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 rx.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 rx.Single<Void> rxClose()
Close the current socket.- Returns:
-
newInstance
public static TcpEventBusBridge newInstance(TcpEventBusBridge arg)
-
-