public interface TcpEventBusBridge
Modifier and Type | Method and 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) |
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.
|
TcpEventBusBridge |
listen(int port)
Listen on specific port
|
TcpEventBusBridge |
listen(int port,
Handler<AsyncResult<TcpEventBusBridge>> handler)
Listen on specific port
|
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)
TcpEventBusBridge listen()
TcpEventBusBridge listen(Handler<AsyncResult<TcpEventBusBridge>> handler)
handler
- the result handlerTcpEventBusBridge 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 handlerTcpEventBusBridge 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 handlervoid close()
Copyright © 2023 Eclipse. All rights reserved.