| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private final LongFunction | |
| private final List | |
| private final InetSocketAddress | |
| private final String | |
| private volatile boolean | |
| private static final AtomicLong | |
| private final Logger | |
| pack-priv static final int | |
| private final QuicEndpoint. | |
| private final QuicEndpoint[] | |
| private final Executor | |
| private static final AtomicLong | |
| pack-priv static final int | |
| private final Map | |
| private int | |
| private final ReentrantLock | |
| pack-priv static final int | |
| private final String | |
| private final QuicTLSContext | |
| private volatile QuicSelector | |
| pack-priv static final int | |
| private final SSLParameters | |
| private final QuicTransportParameters |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public String | appErrorToString(long code)
Overrides default jdk. Returns a string describing the given application error code. |
| public InetSocketAddress | Returns: the address that the QuicEndpoint will bind to.The address that the QuicEndpoint will bind to. |
| private QuicEndpoint | |
| public String | Returns: A string identifying the HttpClientImpl instance.The HttpClientImpl Id. used to identify the client in debug traces. |
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| private void | |
| private static int | |
| public QuicConnectionImpl | Returns: a new unconnectedQuicConnectionthe alternate service for which to create the connection for serviceCreates a new unconnected |
| public QuicConnectionImpl | Returns: a new unconnectedQuicConnectionthe address of the peer peerAddress, final String[] alpns)Creates a new unconnected |
| private QuicEndpoint | Returns: the new QuicEndpointCreates an endpoint with the given name, and register it with a selector. |
| private SSLParameters | |
| public Executor | Returns: the executor used by this QuicClient.Implements jdk. The executor used by this QuicClient when a task needs to be offloaded to a separate thread. |
| public List | Returns: the versions that are available for use on this instance, in the descending order of their preferenceImplements jdk. Returns the versions that are available for use on this instance, in the descending order of their preference. |
| public QuicEndpoint | getEndpoint()
Implements jdk. Returns an endpoint to associate with a connection. |
| public QuicTLSContext | getQuicTLSContext()
Implements jdk. Get the QuicTLSContext used by this quic instance. |
| public SSLParameters | getSSLParameters()
Overrides default jdk. The |
| public QuicTransportParameters | |
| pack-priv byte[] | initialTokenFor(final InetSocketAddress
The address of the server peerAddress)Returns: the initial token to use in INITIAL packets during connection establishment
against a server represented by the |
| public String | instanceId()
Implements jdk. Instance ID used for debugging traces. |
| public boolean | isVersionAvailable(final QuicVersion quicVersion)
Implements jdk. Returns true if the passed version is available for use on this instance, false otherwise. |
| public String | Returns: the name identifying this QuicClient.Overrides default jdk. The name identifying this QuicClient, used in debug traces. |
| private static String | |
| pack-priv void | registerInitialToken(final InetSocketAddress
The address of the server peerAddress, final byte[] The token to use token)Registers a token to use in INITIAL packets during connection establishment against a server
represented by the |
| private static SSLParameters | |
| public void | unmatchedQuicPacket(SocketAddress source, QuicPacket.
Implements jdk. This method is called when a quic packet that couldn't be attributed to a registered connection is received. |
| appErrorCodeToString | back to summary |
|---|---|
| private final LongFunction<String> appErrorCodeToString | |
| availableVersions | back to summary |
|---|---|
| private final List<QuicVersion> availableVersions | |
| bindAddress | back to summary |
|---|---|
| private final InetSocketAddress bindAddress | |
| clientId | back to summary |
|---|---|
| private final String clientId | |
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| CONNECTIONS | back to summary |
|---|---|
| private static final AtomicLong CONNECTIONS | |
| debug | back to summary |
|---|---|
| private final Logger debug | |
| DEFAULT_MAX_ENDPOINTS | back to summary |
|---|---|
| pack-priv static final int DEFAULT_MAX_ENDPOINTS | |
| endpointFactory | back to summary |
|---|---|
| private final QuicEndpoint. | |
| endpoints | back to summary |
|---|---|
| private final QuicEndpoint[] endpoints | |
| executor | back to summary |
|---|---|
| private final Executor executor | |
| IDS | back to summary |
|---|---|
| private static final AtomicLong IDS | |
| INITIAL_SERVER_CONNECTION_ID_LENGTH | back to summary |
|---|---|
| pack-priv static final int INITIAL_SERVER_CONNECTION_ID_LENGTH | |
| initialTokens | back to summary |
|---|---|
| private final Map<QuicClient. | |
| insertionPoint | back to summary |
|---|---|
| private int insertionPoint | |
| lock | back to summary |
|---|---|
| private final ReentrantLock lock | |
| MAX_ENDPOINTS_LIMIT | back to summary |
|---|---|
| pack-priv static final int MAX_ENDPOINTS_LIMIT | |
| name | back to summary |
|---|---|
| private final String name | |
| quicTLSContext | back to summary |
|---|---|
| private final QuicTLSContext quicTLSContext | |
| selector | back to summary |
|---|---|
| private volatile QuicSelector<?> selector | |
| SMALLEST_MAXIMUM_DATAGRAM_SIZE | back to summary |
|---|---|
| pack-priv static final int SMALLEST_MAXIMUM_DATAGRAM_SIZE | |
| sslParameters | back to summary |
|---|---|
| private final SSLParameters sslParameters | |
| transportParams | back to summary |
|---|---|
| private final QuicTransportParameters transportParams | |
| QuicClient | back to summary |
|---|---|
| private QuicClient(final QuicClient. | |
| abort | back to summary |
|---|---|
| public void abort(Throwable t) | |
| abortEndpoint | back to summary |
|---|---|
| private void abortEndpoint(QuicEndpoint endpoint, Throwable cause) | |
| appErrorToString | back to summary |
|---|---|
| public String appErrorToString(long code) Overrides default jdk. Doc from jdk. Returns a string describing the given application error code.
| |
| bindAddress | back to summary |
|---|---|
| public InetSocketAddress bindAddress() The address that the QuicEndpoint will bind to. Implementation Note By default, this is wildcard:0
| |
| chooseEndpoint | back to summary |
|---|---|
| private QuicEndpoint chooseEndpoint() throws IOException | |
| clientId | back to summary |
|---|---|
| public String clientId() The HttpClientImpl Id. used to identify the client in debug traces.
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| closeEndpoint | back to summary |
|---|---|
| private void closeEndpoint(QuicEndpoint endpoint) | |
| computeMaxEndpoints | back to summary |
|---|---|
| private static int computeMaxEndpoints() | |
| createConnectionFor | back to summary |
|---|---|
| public QuicConnectionImpl createConnectionFor(final AltServicesRegistry. Creates a new unconnected API Note The caller is expected to call
| |
| createConnectionFor | back to summary |
|---|---|
| public QuicConnectionImpl createConnectionFor(final InetSocketAddress peerAddress, final String[] alpns) Creates a new unconnected API Note The caller is expected to call
| |
| createEndpoint | back to summary |
|---|---|
| private QuicEndpoint createEndpoint(final String endpointName) throws IOException Creates an endpoint with the given name, and register it with a selector.
| |
| createSSLParameters | back to summary |
|---|---|
| private SSLParameters createSSLParameters(final String[] alpns) | |
| executor | back to summary |
|---|---|
| public Executor executor() Implements jdk. The executor used by this QuicClient 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 Implements jdk. Returns the versions that are available for use on this instance, in the descending order of their preference.
| |
| getEndpoint | back to summary |
|---|---|
| public QuicEndpoint getEndpoint() throws IOException Implements jdk. Doc from jdk. Returns an endpoint to associate with a connection.
| |
| getQuicTLSContext | back to summary |
|---|---|
| public QuicTLSContext getQuicTLSContext() Implements jdk. Doc from jdk. Get the QuicTLSContext used by this quic instance.
| |
| getSSLParameters | back to summary |
|---|---|
| public SSLParameters getSSLParameters() Overrides default jdk. Doc from jdk. The
| |
| getTransportParameters | back to summary |
|---|---|
| public QuicTransportParameters getTransportParameters() Implements jdk.
| |
| initialTokenFor | back to summary |
|---|---|
pack-priv byte[] initialTokenFor(final InetSocketAddress peerAddress)
| |
| instanceId | back to summary |
|---|---|
| public String instanceId() Implements jdk. Doc from jdk. Instance ID used for debugging traces.
| |
| isVersionAvailable | back to summary |
|---|---|
| public boolean isVersionAvailable(final QuicVersion quicVersion) Implements jdk. Doc from jdk. Returns true if the passed version is available for use on this instance, false otherwise.
| |
| name | back to summary |
|---|---|
| public String name() Overrides default jdk. The name identifying this QuicClient, used in debug traces. Implementation Note This is
| |
| nextName | back to summary |
|---|---|
| private static String nextName() | |
| registerInitialToken | back to summary |
|---|---|
| pack-priv void registerInitialToken(final InetSocketAddress peerAddress, final byte[] token) Registers a token to use in INITIAL packets during connection establishment against a server
represented by the
| |
| requireTLS13 | back to summary |
|---|---|
| private static SSLParameters requireTLS13(final SSLParameters parameters) | |
| unmatchedQuicPacket | back to summary |
|---|---|
| public void unmatchedQuicPacket(SocketAddress source, QuicPacket. Implements jdk. Doc from jdk. This method is called when a quic packet that couldn't be attributed to a registered connection is received.
| |
| Modifier and Type | Field and Description |
|---|---|
| private LongFunction | |
| private List | |
| private InetSocketAddress | |
| private String | |
| private Executor | |
| private SSLParameters | |
| private QuicTLSContext | |
| private QuicTransportParameters |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public QuicClient. | |
| public QuicClient. | |
| public QuicClient. | |
| public QuicClient. | |
| public QuicClient | |
| public QuicClient. | |
| public QuicClient. | |
| public QuicClient. | |
| public QuicClient. | |
| public QuicClient. |
| appErrorCodeToString | back to summary |
|---|---|
| private LongFunction<String> appErrorCodeToString | |
| availableVersions | back to summary |
|---|---|
| private List<QuicVersion> availableVersions | |
| bindAddr | back to summary |
|---|---|
| private InetSocketAddress bindAddr | |
| clientId | back to summary |
|---|---|
| private String clientId | |
| executor | back to summary |
|---|---|
| private Executor executor | |
| sslParams | back to summary |
|---|---|
| private SSLParameters sslParams | |
| tlsContext | back to summary |
|---|---|
| private QuicTLSContext tlsContext | |
| transportParams | back to summary |
|---|---|
| private QuicTransportParameters transportParams | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| applicationErrors | back to summary |
|---|---|
| public QuicClient. | |
| availableVersions | back to summary |
|---|---|
| public QuicClient. | |
| availableVersions | back to summary |
|---|---|
| public QuicClient. | |
| bindAddress | back to summary |
|---|---|
| public QuicClient. | |
| build | back to summary |
|---|---|
| public QuicClient build() | |
| clientId | back to summary |
|---|---|
| public QuicClient. | |
| executor | back to summary |
|---|---|
| public QuicClient. | |
| sslParameters | back to summary |
|---|---|
| public QuicClient. | |
| tlsContext | back to summary |
|---|---|
| public QuicClient. | |
| transportParameters | back to summary |
|---|---|
| public QuicClient. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| host | back to summary |
|---|---|
| private final String host Record Component accessed by host(). | |
| port | back to summary |
|---|---|
| private final int port Record Component accessed by port(). | |
| InitialTokenRecipient | back to summary |
|---|---|
| private InitialTokenRecipient(String host, int port) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| host | back to summary |
|---|---|
| public String host() Record Component getter of host. | |
| port | back to summary |
|---|---|
| public int port() Record Component getter of port. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |