APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http

pack-priv Class Http3PendingConnections

extends Object
Class Inheritance
Imports
java.util.Map, .Optional, java.util.concurrent.ConcurrentHashMap, jdk.internal.net.http.AltServicesRegistry.AltService, .Http3ClientImpl.ConnectionRecovery, .Http3ClientImpl.PendingConnection, .Http3ClientImpl.StreamLimitReached, jdk.internal.net.http.common.Log

This class keeps track of pending HTTP/3 connections to avoid making two connections to the same server in parallel. Methods in this class are not atomic. Therefore, it is expected that they will be called while holding a lock in order to ensure atomicity.

Field Summary

Modifier and TypeField and Description
private final Map<String, Http3ClientImpl.ConnectionRecovery>
private final Map<String, Http3ClientImpl.ConnectionRecovery>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Http3ClientImpl.PendingConnection
pack-priv Http3ClientImpl.ConnectionRecovery
pack-priv Http3ClientImpl.ConnectionRecovery
removeCompleted(String connectionKey, Exchange<?> origExchange, Http3Connection conn)

pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pendingAdvertisedback to summary
private final Map<String, Http3ClientImpl.ConnectionRecovery> pendingAdvertised
pendingUnadvertisedback to summary
private final Map<String, Http3ClientImpl.ConnectionRecovery> pendingUnadvertised

Constructor Detail

Http3PendingConnectionsback to summary
pack-priv Http3PendingConnections()

Method Detail

addPendingback to summary
pack-priv Http3ClientImpl.PendingConnection addPending(String key, HttpRequestImpl request, AltServicesRegistry.AltService altSvc, Exchange<?> exchange)
lookupForback to summary
pack-priv Http3ClientImpl.ConnectionRecovery lookupFor(String key, HttpRequestImpl request, HttpClientImpl client)
removeCompletedback to summary
pack-priv Http3ClientImpl.ConnectionRecovery removeCompleted(String connectionKey, Exchange<?> origExchange, Http3Connection conn)
streamLimitReachedback to summary
pack-priv void streamLimitReached(String key, Http3Connection connection)