Interface TcpEventBusBridge
-
Method Summary
Modifier and TypeMethodDescriptionclose()Close the current socket.static TcpEventBusBridgestatic TcpEventBusBridgecreate(Vertx vertx, BridgeOptions options) static TcpEventBusBridgecreate(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions) static TcpEventBusBridgecreate(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions, Handler<BridgeEvent> eventHandler) listen()Start listening on the port and host as configured in theNetServerOptionsused when creating the server.listen(int port) Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theNetServerOptionsused when creating the server.Start listening on the specified port and host, ignoring port and host configured in theNetServerOptionsused when creating the server.default Future<TcpEventBusBridge> listen(SocketAddress localAddress) Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.
-
Method Details
-
create
-
create
-
create
static TcpEventBusBridge create(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions) -
create
static TcpEventBusBridge create(Vertx vertx, BridgeOptions options, NetServerOptions netServerOptions, Handler<BridgeEvent> eventHandler) -
listen
Future<TcpEventBusBridge> listen()Start listening on the port and host as configured in theNetServerOptionsused when creating the server.- Returns:
- a future of the result
-
listen
Start listening on the specified port and host, ignoring port and host configured in theNetServerOptionsused when creating the server.- Parameters:
port- the tcp portaddress- the local address- Returns:
- a future of the result
-
listen
Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theNetServerOptionsused when creating the server.- Parameters:
port- the TCP port- Returns:
- a future of the result
-
listen
Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.- Parameters:
localAddress- the local address to listen on- Returns:
- a future of the result
-
close
-