TCP EventBus bridge for Vert.x
Constructor and description |
---|
TcpEventBusBridge
(java.lang.Object delegate) |
Type | Name and description |
---|---|
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler) Close the current socket. |
void |
close() Close the current socket. |
static TcpEventBusBridge |
create(Vertx vertx) |
static TcpEventBusBridge |
create(Vertx vertx, java.util.Map<java.lang.String, java.lang.Object> options) |
static TcpEventBusBridge |
create(Vertx vertx, java.util.Map<java.lang.String, java.lang.Object> options, java.util.Map<java.lang.String, java.lang.Object> netServerOptions) |
java.lang.Object |
getDelegate() |
TcpEventBusBridge |
listen() Listen on default port 7000 |
TcpEventBusBridge |
listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<TcpEventBusBridge>> handler) Listen on default port 7000 with a handler to report the state of the socket listen operation. |
TcpEventBusBridge |
listen(int port, java.lang.String address) Listen on specific port and bind to specific address |
TcpEventBusBridge |
listen(int port, java.lang.String address, io.vertx.core.Handler<io.vertx.core.AsyncResult<TcpEventBusBridge>> handler) Listen on specific port and bind to specific address |
TcpEventBusBridge |
listen(int port) Listen on specific port |
TcpEventBusBridge |
listen(int port, io.vertx.core.Handler<io.vertx.core.AsyncResult<TcpEventBusBridge>> handler) Listen on specific port |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Close the current socket.
handler
- the result handlerClose the current socket.
Listen on default port 7000
Listen on default port 7000 with a handler to report the state of the socket listen operation.
handler
- the result handlerListen on specific port and bind to specific address
port
- tcp portaddress
- tcp address to the bindListen on specific port and bind to specific address
port
- tcp portaddress
- tcp address to the bindhandler
- the result handlerListen on specific port
port
- tcp portListen on specific port
port
- tcp porthandler
- the result handler