Class QuicEndpoint
java.lang.Object
io.vertx.reactivex.core.net.QuicEndpoint
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate, Measured
- Direct Known Subclasses:
QuicClient, QuicServer
Represents a Quic endpoints, whose primary function is to bind a UDP socket on a given or random port.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(SocketAddress address) Binds a UDP socket at the givenaddress.close()Close the endpoint and release all associated resources.booleaninthashCode()booleanWhether the metrics are enabled for this measured objectstatic QuicEndpointnewInstance(QuicEndpoint arg) rxBind(SocketAddress address) Binds a UDP socket at the givenaddress.rxClose()Close the endpoint and release all associated resources.Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).rxShutdown(Duration timeout) Initiate the endpoint shutdown sequence.shutdown()Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).Initiate the endpoint shutdown sequence.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
QuicEndpoint
-
QuicEndpoint
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceMeasured- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
isMetricsEnabled
public boolean isMetricsEnabled()Whether the metrics are enabled for this measured object- Specified by:
isMetricsEnabledin interfaceMeasured- Returns:
trueif metrics are enabled
-
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
-
rxBind
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
-
rxClose
Close the endpoint and release all associated resources.- Returns:
- a future completed with the close operation result
-
shutdown
-
rxShutdown
Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).- Returns:
- a future completed when shutdown has completed
-
shutdown
-
rxShutdown
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
-
newInstance
-