Class QuicEndpoint
- All Implemented Interfaces:
MutinyDelegate,Measured
- Direct Known Subclasses:
QuicClient,QuicServer
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
QuicEndpoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.core.metrics.Measured
Measured.MeasuredImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQuicEndpoint(io.vertx.core.net.QuicEndpoint delegate) Create a new instance ofQuicEndpointdelegating to the given (non-null) instance ofQuicEndpoint.QuicEndpoint(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<io.vertx.core.net.SocketAddress>bind(io.vertx.core.net.SocketAddress address) Binds a UDP socket at the givenaddress.io.vertx.core.net.SocketAddressbindAndAwait(io.vertx.core.net.SocketAddress address) Binds a UDP socket at the givenaddress.bindAndForget(io.vertx.core.net.SocketAddress address) 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.booleanio.vertx.core.net.QuicEndpointGet the delegate instance.inthashCode()booleanWhether the metrics are enabled for this measured objectstatic QuicEndpointnewInstance(io.vertx.core.net.QuicEndpoint delegate) Creates a new instance of theQuicEndpoint.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 timeout) Initiate the endpoint shutdown sequence.Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).shutdownAndForget(Duration timeout) Initiate the endpoint shutdown sequence.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
QuicEndpoint
public QuicEndpoint(io.vertx.core.net.QuicEndpoint delegate) Create a new instance ofQuicEndpointdelegating to the given (non-null) instance ofQuicEndpoint. -
QuicEndpoint
-
-
Method Details
-
getDelegate
public io.vertx.core.net.QuicEndpoint 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- Returns:
- the delegate instance
-
bind
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.net.SocketAddress> bind(io.vertx.core.net.SocketAddress address) 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.
- 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 address) 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).- 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.- 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.
- 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).- 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.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
QuicEndpoint.close()
-
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.
- 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).- 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.- 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.
- 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).- 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.- 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)
-
isMetricsEnabled
public boolean isMetricsEnabled()Whether the metrics are enabled for this measured object- Specified by:
isMetricsEnabledin interfaceMeasured- Returns:
trueif metrics are enabled
-
newInstance
Creates a new instance of theQuicEndpoint. -
hashCode
public int hashCode() -
equals
-
toString
-