- All Superinterfaces:
Measured
- All Known Subinterfaces:
QuicClient,QuicServer
Represents a Quic endpoints, whose primary function is to bind a UDP socket on a given or random port.
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionbind(SocketAddress address) Binds a UDP socket at the givenaddress.close()Close the endpoint and release all associated resources.shutdown()Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).Initiate the endpoint shutdown sequence.Methods inherited from interface io.vertx.core.metrics.Measured
isMetricsEnabled
-
Method Details
-
bind
Binds a UDP socket at the givenaddress.>When the endpoint is successfully bound, ainvalid input: '<'/p
QuicClientcan connect to a Quic serverQuicServercan accept connections from a Quic client
- Parameters:
address- the bind address- Returns:
- a future signaling the success or failure of the bind operation, the result is socket address this endpoint is bound to
-
close
Close the endpoint and release all associated resources.- Returns:
- a future completed with the close operation result
-
shutdown
Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).- Returns:
- a future completed when shutdown has completed
-
shutdown
Initiate the endpoint shutdown sequence.- Parameters:
timeout- the amount of time after which all resources are forcibly closed- Returns:
- a future notified when the client is closed
-