QuicInstance represents a common abstraction which is
either a QuicClient or a QuicServer, or possibly
both. It defines the subset of public methods that a
QuicEndpoint and a QuicSelector need to operate
with a quic client, or a quic server;
| Modifier and Type | Method and Description |
|---|---|
| public default String | Returns: a string describing the given application error codean application error code errorCode)Returns a string describing the given application error code. |
| public Executor | Returns: the executor used by this QuicClient.The executor used by this quic instance when a task needs to be offloaded to a separate thread. |
| public List | Returns: the versions that are available for use on this instanceReturns the versions that are available for use on this instance. |
| public QuicEndpoint | Returns: an endpoint to associate with a connectionReturns an endpoint to associate with a connection. |
| public QuicTLSContext | Returns: the QuicTLSContext used by this quic instance.Get the QuicTLSContext used by this quic instance. |
| public default int | Returns: the configured UDP receive buffer size this instance should useReturns the configured UDP receive buffer size this instance should use. |
| public default int | Returns: the configured UDP send buffer size this instance should useReturns the configured UDP send buffer size this instance should use. |
| public default SSLParameters | Returns: TheSSLParameters for this quic instance or null.The |
| public QuicTransportParameters | |
| public String | Returns: A string uniquely identifying this instance.Instance ID used for debugging traces. |
| public boolean | Returns: true if the passed version is available for use on this instance, false otherwiseReturns true if the passed version is available for use on this instance, false otherwise. |
| public default String | |
| public void | unmatchedQuicPacket(SocketAddress
the source address of the datagram source, QuicPacket.the packet type type,A buffer positioned at the start of the quic packet buffer)This method is called when a quic packet that couldn't be attributed to a registered connection is received. |
| appErrorToString | back to summary |
|---|---|
| public default String appErrorToString(long errorCode) Returns a string describing the given application error code. Implementation Specification By default, this method returns a generic
string containing the hexadecimal value of the given errorCode.
Subclasses built for supporting a given application protocol,
such as HTTP/3, may override this method to return more
specific names, such as for instance, API Note This method is typically used for logging and/or debugging purposes, to generate a more user-friendly log message.
| |
| executor | back to summary |
|---|---|
| public Executor executor() The executor used by this quic instance when a task needs to be offloaded to a separate thread. Implementation Note This is the HttpClientImpl internal executor.
| |
| getAvailableVersions | back to summary |
|---|---|
| public List Returns the versions that are available for use on this instance.
| |
| getEndpoint | back to summary |
|---|---|
| public QuicEndpoint getEndpoint() throws IOException Returns an endpoint to associate with a connection.
| |
| getQuicTLSContext | back to summary |
|---|---|
| public QuicTLSContext getQuicTLSContext() Get the QuicTLSContext used by this quic instance.
| |
| getReceiveBufferSize | back to summary |
|---|---|
| public default int getReceiveBufferSize() Returns the configured UDP receive buffer size this instance should use.
| |
| getSendBufferSize | back to summary |
|---|---|
| public default int getSendBufferSize() Returns the configured UDP send buffer size this instance should use.
| |
| getSSLParameters | back to summary |
|---|---|
| public default SSLParameters getSSLParameters() The Implementation Specification The default implementation of this method returns
| |
| getTransportParameters | back to summary |
|---|---|
| public QuicTransportParameters getTransportParameters() | |
| instanceId | back to summary |
|---|---|
| public String instanceId() Instance ID used for debugging traces.
| |
| isVersionAvailable | back to summary |
|---|---|
| public boolean isVersionAvailable(QuicVersion quicVersion) Returns true if the passed version is available for use on this instance, false otherwise.
| |
| name | back to summary |
|---|---|
| public default String name() | |
| unmatchedQuicPacket | back to summary |
|---|---|
| public void unmatchedQuicPacket(SocketAddress source, QuicPacket. This method is called when a quic packet that couldn't be attributed to a registered connection is received.
| |