Class QuicClient
- All Implemented Interfaces:
MutinyDelegate,Measured
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
QuicClient
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.core.metrics.Measured
Measured.MeasuredImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQuicClient(io.vertx.core.net.QuicClient delegate) Create a new instance ofQuicClientdelegating to the given (non-null) instance ofQuicClient.QuicClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<io.vertx.core.net.SocketAddress>bind(io.vertx.core.net.SocketAddress arg0) Binds a UDP socket at the givenaddress.io.vertx.core.net.SocketAddressbindAndAwait(io.vertx.core.net.SocketAddress arg0) Binds a UDP socket at the givenaddress.bindAndForget(io.vertx.core.net.SocketAddress arg0) Binds a UDP socket at the givenaddress.io.smallrye.mutiny.Uni<Void>close()Close the endpoint and release all associated resources.voidClose the endpoint and release all associated resources.Close the endpoint and release all associated resources.io.smallrye.mutiny.Uni<QuicConnection>Connect to a Quic server at the specificportandhost.io.smallrye.mutiny.Uni<QuicConnection>Connect to a Quic server at the specificportandhost, with specificoptions.io.smallrye.mutiny.Uni<QuicConnection>connect(io.vertx.core.net.SocketAddress address) Connect to a Quic server.io.smallrye.mutiny.Uni<QuicConnection>connect(io.vertx.core.net.SocketAddress address, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server with specificoptions.connectAndAwait(int port, String host) Connect to a Quic server at the specificportandhost.connectAndAwait(int port, String host, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server at the specificportandhost, with specificoptions.connectAndAwait(io.vertx.core.net.SocketAddress address) Connect to a Quic server.connectAndAwait(io.vertx.core.net.SocketAddress address, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server with specificoptions.connectAndForget(int port, String host) Connect to a Quic server at the specificportandhost.connectAndForget(int port, String host, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server at the specificportandhost, with specificoptions.connectAndForget(io.vertx.core.net.SocketAddress address) Connect to a Quic server.connectAndForget(io.vertx.core.net.SocketAddress address, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server with specificoptions.booleanio.vertx.core.net.QuicClientGet the delegate instance.inthashCode()booleanWhether the metrics are enabled for this measured objectstatic QuicClientnewInstance(io.vertx.core.net.QuicClient delegate) Creates a new instance of theQuicClient.io.smallrye.mutiny.Uni<Void>shutdown()Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).io.smallrye.mutiny.Uni<Void>Initiate the endpoint shutdown sequence.voidShutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).voidshutdownAndAwait(Duration arg0) Initiate the endpoint shutdown sequence.Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).shutdownAndForget(Duration arg0) Initiate the endpoint shutdown sequence.toString()Methods inherited from class io.vertx.mutiny.core.net.QuicEndpoint
newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
QuicClient
public QuicClient(io.vertx.core.net.QuicClient delegate) Create a new instance ofQuicClientdelegating to the given (non-null) instance ofQuicClient. -
QuicClient
-
-
Method Details
-
getDelegate
public io.vertx.core.net.QuicClient 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 interfaceMeasured- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classQuicEndpoint- Returns:
- the delegate instance
-
connect
Connect to a Quic server at the specificportandhost.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 porthost- the host- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicClient.connect(int, String)
-
connectAndAwait
Connect to a Quic server at the specificportandhost.Unlike the bare Vert.x variant, this method returns a
QuicConnection. 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 porthost- the host- Returns:
- The operation result
- See Also:
-
QuicClient.connect(int, String)
-
connectAndForget
Connect to a Quic server at the specificportandhost.Unlike the bare Vert.x variant, this method ignores the
QuicConnectionresult or any failure.- Parameters:
port- the porthost- the host- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicClient.connect(int, String)
-
connect
@CheckReturnValue public io.smallrye.mutiny.Uni<QuicConnection> connect(int port, String host, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server at the specificportandhost, with specificoptions.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 porthost- the host- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicClient.connect(int, String, QuicConnectOptions)
-
connectAndAwait
public QuicConnection connectAndAwait(int port, String host, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server at the specificportandhost, with specificoptions.Unlike the bare Vert.x variant, this method returns a
QuicConnection. 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 porthost- the host- Returns:
- The operation result
- See Also:
-
QuicClient.connect(int, String, QuicConnectOptions)
-
connectAndForget
public QuicClient connectAndForget(int port, String host, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server at the specificportandhost, with specificoptions.Unlike the bare Vert.x variant, this method ignores the
QuicConnectionresult or any failure.- Parameters:
port- the porthost- the host- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicClient.connect(int, String, QuicConnectOptions)
-
connect
@CheckReturnValue public io.smallrye.mutiny.Uni<QuicConnection> connect(io.vertx.core.net.SocketAddress address) Connect to a Quic 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:
address- the server address- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicClient.connect(SocketAddress)
-
connectAndAwait
Connect to a Quic server.Unlike the bare Vert.x variant, this method returns a
QuicConnection. 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:
address- the server address- Returns:
- The operation result
- See Also:
-
QuicClient.connect(SocketAddress)
-
connectAndForget
Connect to a Quic server.Unlike the bare Vert.x variant, this method ignores the
QuicConnectionresult or any failure.- Parameters:
address- the server address- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicClient.connect(SocketAddress)
-
connect
@CheckReturnValue public io.smallrye.mutiny.Uni<QuicConnection> connect(io.vertx.core.net.SocketAddress address, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server with specificoptions.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:
address- the server addressoptions- the connect options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicClient.connect(SocketAddress, QuicConnectOptions)
-
connectAndAwait
public QuicConnection connectAndAwait(io.vertx.core.net.SocketAddress address, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server with specificoptions.Unlike the bare Vert.x variant, this method returns a
QuicConnection. 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:
address- the server addressoptions- the connect options- Returns:
- The operation result
- See Also:
-
QuicClient.connect(SocketAddress, QuicConnectOptions)
-
connectAndForget
public QuicClient connectAndForget(io.vertx.core.net.SocketAddress address, io.vertx.core.net.QuicConnectOptions options) Connect to a Quic server with specificoptions.Unlike the bare Vert.x variant, this method ignores the
QuicConnectionresult or any failure.- Parameters:
address- the server addressoptions- the connect options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicClient.connect(SocketAddress, QuicConnectOptions)
-
shutdown
Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).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.
- Overrides:
shutdownin classQuicEndpoint- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicEndpoint.shutdown()
-
shutdownAndAwait
public void shutdownAndAwait()Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).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).- Overrides:
shutdownAndAwaitin classQuicEndpoint- See Also:
-
QuicEndpoint.shutdown()
-
shutdownAndForget
Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
shutdownAndForgetin classQuicEndpoint- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicEndpoint.shutdown()
-
shutdown
Initiate the endpoint shutdown sequence.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.
- Overrides:
shutdownin classQuicEndpoint- Parameters:
timeout- the amount of time after which all resources are forcibly closed- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicEndpoint.shutdown(Duration)
-
shutdownAndAwait
Initiate the endpoint shutdown sequence.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).- Overrides:
shutdownAndAwaitin classQuicEndpoint- Parameters:
timeout- the amount of time after which all resources are forcibly closed- See Also:
-
QuicEndpoint.shutdown(Duration)
-
shutdownAndForget
Initiate the endpoint shutdown sequence.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
shutdownAndForgetin classQuicEndpoint- Parameters:
timeout- the amount of time after which all resources are forcibly closed- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicEndpoint.shutdown(Duration)
-
bind
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.net.SocketAddress> bind(io.vertx.core.net.SocketAddress arg0) Binds a UDP socket at the givenaddress.>When the endpoint is successfully bound, a</p
QuicClientcan connect to a Quic serverQuicServercan accept connections from a Quic client
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.
- Overrides:
bindin classQuicEndpoint- Parameters:
address- the bind address- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicEndpoint.bind(SocketAddress)
-
bindAndAwait
public io.vertx.core.net.SocketAddress bindAndAwait(io.vertx.core.net.SocketAddress arg0) Binds a UDP socket at the givenaddress.>When the endpoint is successfully bound, a</p
QuicClientcan connect to a Quic serverQuicServercan accept connections from a Quic client
Unlike the bare Vert.x variant, this method returns a
SocketAddress. 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).- Overrides:
bindAndAwaitin classQuicEndpoint- Parameters:
address- the bind address- Returns:
- The operation result
- See Also:
-
QuicEndpoint.bind(SocketAddress)
-
bindAndForget
Binds a UDP socket at the givenaddress.>When the endpoint is successfully bound, a</p
QuicClientcan connect to a Quic serverQuicServercan accept connections from a Quic client
Unlike the bare Vert.x variant, this method ignores the
SocketAddressresult or any failure.- Overrides:
bindAndForgetin classQuicEndpoint- Parameters:
address- the bind address- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicEndpoint.bind(SocketAddress)
-
close
Close the endpoint and release all associated resources.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.
- Overrides:
closein classQuicEndpoint- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
QuicEndpoint.close()
-
closeAndAwait
public void closeAndAwait()Close the endpoint and release all associated resources.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).- Overrides:
closeAndAwaitin classQuicEndpoint- See Also:
-
QuicEndpoint.close()
-
closeAndForget
Close the endpoint and release all associated resources.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
closeAndForgetin classQuicEndpoint- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicEndpoint.close()
-
isMetricsEnabled
public boolean isMetricsEnabled()Whether the metrics are enabled for this measured object- Specified by:
isMetricsEnabledin interfaceMeasured- Overrides:
isMetricsEnabledin classQuicEndpoint- Returns:
trueif metrics are enabled
-
newInstance
Creates a new instance of theQuicClient. -
hashCode
public int hashCode()- Overrides:
hashCodein classQuicEndpoint
-
equals
- Overrides:
equalsin classQuicEndpoint
-
toString
- Overrides:
toStringin classQuicEndpoint
-