Interface QuicEndpoint
- 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 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
-
shutdown
-
shutdown
-