interface TcpEventBusBridge
TCP EventBus bridge for Vert.x
Author
Paulo Lopes
abstract fun close(handler: Handler<AsyncResult<Void>>): Unitabstract fun close(): Unit
Close the current socket. |
|
open static fun create(vertx: Vertx): TcpEventBusBridgeopen static fun create(vertx: Vertx, options: BridgeOptions): TcpEventBusBridgeopen static fun create(vertx: Vertx, options: BridgeOptions, netServerOptions: NetServerOptions): TcpEventBusBridgeopen static fun create(vertx: Vertx, options: BridgeOptions, netServerOptions: NetServerOptions, eventHandler: Handler<BridgeEvent>): TcpEventBusBridge |
|
abstract fun listen(): TcpEventBusBridge
Listen on default port 7000 abstract fun listen(handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge
Listen on default port 7000 with a handler to report the state of the socket listen operation. abstract fun listen(port: Int, address: String): TcpEventBusBridgeabstract fun listen(port: Int, address: String, handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge
Listen on specific port and bind to specific address abstract fun listen(port: Int): TcpEventBusBridgeabstract fun listen(port: Int, handler: Handler<AsyncResult<TcpEventBusBridge>>): TcpEventBusBridge
Listen on specific port |