Class TcpEventBusBridge
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Paulo Lopes
- See Also:
-
TcpEventBusBridge
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTcpEventBusBridge(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge delegate) Create a new instance ofTcpEventBusBridgedelegating to the given (non-null) instance ofTcpEventBusBridge.TcpEventBusBridge(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>close()Close the current socket.voidClose the current socket.Close the current socket.static TcpEventBusBridgestatic TcpEventBusBridgestatic TcpEventBusBridgecreate(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options, io.vertx.core.net.NetServerOptions netServerOptions) static TcpEventBusBridgecreate(Vertx vertx, io.vertx.ext.bridge.BridgeOptions options, io.vertx.core.net.NetServerOptions netServerOptions, Consumer<BridgeEvent> eventHandler) booleanio.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridgeGet the delegate instance.inthashCode()io.smallrye.mutiny.Uni<TcpEventBusBridge>listen()Start listening on the port and host as configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.io.smallrye.mutiny.Uni<TcpEventBusBridge>listen(int port) Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.io.smallrye.mutiny.Uni<TcpEventBusBridge>Start listening on the specified port and host, ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.io.smallrye.mutiny.Uni<TcpEventBusBridge>listen(io.vertx.core.net.SocketAddress localAddress) Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.Start listening on the port and host as configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.listenAndAwait(int port) Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.listenAndAwait(int port, String address) Start listening on the specified port and host, ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.listenAndAwait(io.vertx.core.net.SocketAddress localAddress) Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.Start listening on the port and host as configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.listenAndForget(int port) Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.listenAndForget(int port, String address) Start listening on the specified port and host, ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.listenAndForget(io.vertx.core.net.SocketAddress localAddress) Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.static TcpEventBusBridgenewInstance(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge delegate) Creates a new instance of theTcpEventBusBridge.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
TcpEventBusBridge
public TcpEventBusBridge(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge delegate) Create a new instance ofTcpEventBusBridgedelegating to the given (non-null) instance ofTcpEventBusBridge. -
TcpEventBusBridge
-
-
Method Details
-
getDelegate
public io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
listen
Start listening on the port and host as configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
TcpEventBusBridge.listen()
-
listenAndAwait
Start listening on the port and host as configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
TcpEventBusBridge. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
TcpEventBusBridge.listen()
-
listenAndForget
Start listening on the port and host as configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method ignores the
TcpEventBusBridgeresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
TcpEventBusBridge.listen()
-
listen
Start listening on the specified port and host, ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
port- the tcp portaddress- the local address- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
TcpEventBusBridge.listen(int, String)
-
listenAndAwait
Start listening on the specified port and host, ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
TcpEventBusBridge. This method awaits indefinitely 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 aRuntimeException).- Parameters:
port- the tcp portaddress- the local address- Returns:
- The operation result
- See Also:
-
TcpEventBusBridge.listen(int, String)
-
listenAndForget
Start listening on the specified port and host, ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method ignores the
TcpEventBusBridgeresult or any failure.- Parameters:
port- the tcp portaddress- the local address- Returns:
- The current instance to chain operations if needed.
- See Also:
-
TcpEventBusBridge.listen(int, String)
-
listen
Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
port- the TCP port- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
TcpEventBusBridge.listen(int)
-
listenAndAwait
Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
TcpEventBusBridge. This method awaits indefinitely 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 aRuntimeException).- Parameters:
port- the TCP port- Returns:
- The operation result
- See Also:
-
TcpEventBusBridge.listen(int)
-
listenAndForget
Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theio.vertx.mutiny.core.net.NetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method ignores the
TcpEventBusBridgeresult or any failure.- Parameters:
port- the TCP port- Returns:
- The current instance to chain operations if needed.
- See Also:
-
TcpEventBusBridge.listen(int)
-
listen
@CheckReturnValue public io.smallrye.mutiny.Uni<TcpEventBusBridge> listen(io.vertx.core.net.SocketAddress localAddress) Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
localAddress- the local address to listen on- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
TcpEventBusBridge.listen(SocketAddress)
-
listenAndAwait
Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method returns a
TcpEventBusBridge. This method awaits indefinitely 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 aRuntimeException).- Parameters:
localAddress- the local address to listen on- Returns:
- The operation result
- See Also:
-
TcpEventBusBridge.listen(SocketAddress)
-
listenAndForget
Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.Unlike the bare Vert.x variant, this method ignores the
TcpEventBusBridgeresult or any failure.- Parameters:
localAddress- the local address to listen on- Returns:
- The current instance to chain operations if needed.
- See Also:
-
TcpEventBusBridge.listen(SocketAddress)
-
close
Close the current socket.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
TcpEventBusBridge.close()
-
closeAndAwait
public void closeAndAwait()Close the current socket.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
TcpEventBusBridge.close()
-
closeAndForget
Close the current socket.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
TcpEventBusBridge.close()
-
create
-
create
-
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) -
newInstance
public static TcpEventBusBridge newInstance(io.vertx.ext.eventbus.bridge.tcp.TcpEventBusBridge delegate) Creates a new instance of theTcpEventBusBridge. -
hashCode
public int hashCode() -
equals
-
toString
-