public interface TcpEventBusBridge
Modifier and Type | Method and Description |
---|---|
Future<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) |
Future<TcpEventBusBridge> |
listen()
Listen on default port 7000
|
TcpEventBusBridge |
listen(Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on default port 7000 with a handler to report the state of the socket listen operation.
|
Future<TcpEventBusBridge> |
listen(int port)
Listen on specific port
|
TcpEventBusBridge |
listen(int port,
Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on specific port
|
Future<TcpEventBusBridge> |
listen(int port,
String address)
Listen on specific port and bind to specific address
|
TcpEventBusBridge |
listen(int port,
String address,
Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on specific port and bind to specific address
|
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)
Future<TcpEventBusBridge> listen()
TcpEventBusBridge listen(Handler<AsyncResult<TcpEventBusBridge>> handler)
handler
- the result handlerFuture<TcpEventBusBridge> listen(int port, String address)
port
- tcp portaddress
- tcp address to the bindTcpEventBusBridge listen(int port, String address, Handler<AsyncResult<TcpEventBusBridge>> handler)
port
- tcp portaddress
- tcp address to the bindhandler
- the result handlerFuture<TcpEventBusBridge> listen(int port)
port
- tcp portTcpEventBusBridge listen(int port, Handler<AsyncResult<TcpEventBusBridge>> handler)
port
- tcp porthandler
- the result handlervoid close(Handler<AsyncResult<Void>> handler)
handler
- the result handlerCopyright © 2024 Eclipse. All rights reserved.