Class TcpEventBusBridge
- java.lang.Object
-
- io.vertx.mutiny.ext.eventbus.bridge.tcp.TcpEventBusBridge
-
public class TcpEventBusBridge extends Object
TCP EventBus bridge for Vert.x NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<TcpEventBusBridge>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description TcpEventBusBridge(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge delegate)
TcpEventBusBridge(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
close()
Close the current socket.Void
closeAndAwait()
Blocking variant ofclose()
.void
closeAndForget()
Variant ofclose()
that ignores the result of the operation.static TcpEventBusBridge
create(Vertx vertx)
static TcpEventBusBridge
create(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options)
static TcpEventBusBridge
create(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options, io.vertx.core.net.NetServerOptions netServerOptions)
static TcpEventBusBridge
create(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options, io.vertx.core.net.NetServerOptions netServerOptions, Consumer<BridgeEvent> eventHandler)
boolean
equals(Object o)
io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge
getDelegate()
int
hashCode()
io.smallrye.mutiny.Uni<TcpEventBusBridge>
listen()
Listen on default port 7000 with a handler to report the state of the socket listen operation.io.smallrye.mutiny.Uni<TcpEventBusBridge>
listen(int port)
Listen on specific portio.smallrye.mutiny.Uni<TcpEventBusBridge>
listen(int port, String address)
Listen on specific port and bind to specific addressTcpEventBusBridge
listenAndAwait()
Blocking variant oflisten()
.TcpEventBusBridge
listenAndAwait(int port)
Blocking variant oflisten(int)
.TcpEventBusBridge
listenAndAwait(int port, String address)
Blocking variant oflisten(int,String)
.TcpEventBusBridge
listenAndForget()
Variant oflisten()
that ignores the result of the operation.TcpEventBusBridge
listenAndForget(int port)
Variant oflisten(int)
that ignores the result of the operation.TcpEventBusBridge
listenAndForget(int port, String address)
Variant oflisten(int,String)
that ignores the result of the operation.static TcpEventBusBridge
newInstance(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<TcpEventBusBridge> __TYPE_ARG
-
-
Constructor Detail
-
TcpEventBusBridge
public TcpEventBusBridge(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge delegate)
-
TcpEventBusBridge
public TcpEventBusBridge(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge getDelegate()
-
create
public static TcpEventBusBridge create(Vertx vertx)
-
create
public static TcpEventBusBridge create(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options)
-
create
public static TcpEventBusBridge create(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options, io.vertx.core.net.NetServerOptions netServerOptions)
-
create
public static TcpEventBusBridge create(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options, io.vertx.core.net.NetServerOptions netServerOptions, Consumer<BridgeEvent> eventHandler)
-
listen
@CheckReturnValue public io.smallrye.mutiny.Uni<TcpEventBusBridge> listen()
Listen on default port 7000 with a handler to report the state of the socket listen operation.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
listenAndAwait
public TcpEventBusBridge listenAndAwait()
Blocking variant oflisten()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the TcpEventBusBridge instance produced by the operation.
-
listenAndForget
public TcpEventBusBridge listenAndForget()
Variant oflisten()
that ignores the result of the operation.This method subscribes on the result of
listen()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlisten()
but you don't need to compose it with other operations.- Returns:
- the instance of TcpEventBusBridge to chain method calls.
-
listen
@CheckReturnValue public io.smallrye.mutiny.Uni<TcpEventBusBridge> listen(int port, String address)
Listen on specific port and bind to specific addressUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
port
- tcp portaddress
- tcp address to the bind- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
listenAndAwait
public TcpEventBusBridge listenAndAwait(int port, String address)
Blocking variant oflisten(int,String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
port
- tcp portaddress
- tcp address to the bind- Returns:
- the TcpEventBusBridge instance produced by the operation.
-
listenAndForget
public TcpEventBusBridge listenAndForget(int port, String address)
Variant oflisten(int,String)
that ignores the result of the operation.This method subscribes on the result of
listen(int,String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlisten(int,String)
but you don't need to compose it with other operations.- Parameters:
port
- tcp portaddress
- tcp address to the bind- Returns:
- the instance of TcpEventBusBridge to chain method calls.
-
listen
@CheckReturnValue public io.smallrye.mutiny.Uni<TcpEventBusBridge> listen(int port)
Listen on specific portUnlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
port
- tcp port- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
listenAndAwait
public TcpEventBusBridge listenAndAwait(int port)
Blocking variant oflisten(int)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
port
- tcp port- Returns:
- the TcpEventBusBridge instance produced by the operation.
-
listenAndForget
public TcpEventBusBridge listenAndForget(int port)
Variant oflisten(int)
that ignores the result of the operation.This method subscribes on the result of
listen(int)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromlisten(int)
but you don't need to compose it with other operations.- Parameters:
port
- tcp port- Returns:
- the instance of TcpEventBusBridge to chain method calls.
-
close
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> close()
Close the current socket.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
closeAndAwait
public Void closeAndAwait()
Blocking variant ofclose()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the Void instance produced by the operation.
-
closeAndForget
public void closeAndForget()
-
newInstance
public static TcpEventBusBridge newInstance(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge arg)
-
-