Interface Http2ClientSettings
- All Known Subinterfaces:
Http2ClientSettings
- All Known Implementing Classes:
Http2ClientSettings.Http2ClientSettingsImpl
public interface Http2ClientSettings
-
Method Summary
Modifier and TypeMethodDescriptionintThe maximum age of a connection created bymanagedPersistentHttp2ormanagedPersistentHttp2WithPriorKnowledge.doubleThe jitter applied to the persistent connection maximum age per connection, as a fraction of the configured age: with the default of 0.1 each connection is retired after between 90% and 110% of the configured age, so that connections that were opened together are not all retired at the same time. 0 disables jitter.intintbooleanintintThe largest frame payload this endpoint accepts, in bytes.intThe maximum size of a decoded header list that this endpoint is prepared to accept, in bytes.intintwithBaseConnectionBackoff(Duration backoff) withCompletionTimeout(Duration timeout) withIncomingConnectionLevelBufferSize(int newValue) withIncomingStreamLevelBufferSize(int newValue) withLogFrames(boolean shouldLog) withMaxConcurrentStreams(int newValue) withMaxConnectionBackoff(Duration backoff) withMaxFrameSize(int newValue) withMaxHeaderListSize(int newValue) withMaxPersistentAttempts(int max) withOutgoingControlFrameBufferSize(int newValue) PassChronoUnit.FOREVER.getDurationto disable the maximum connection age.withPersistentConnectionMaxAgeJitter(double jitter) withPingInterval(Duration interval) withPingTimeout(Duration timeout) withRequestEntityChunkSize(int newValue)
-
Method Details
-
getBaseConnectionBackoff
Duration getBaseConnectionBackoff() -
getCompletionTimeout
Duration getCompletionTimeout() -
getMaxConnectionBackoff
Duration getMaxConnectionBackoff() -
getMaxPersistentAttempts
int getMaxPersistentAttempts() -
getPersistentConnectionMaxAge
Duration getPersistentConnectionMaxAge()The maximum age of a connection created bymanagedPersistentHttp2ormanagedPersistentHttp2WithPriorKnowledge. When the age of a connection exceeds this value, the connection stops accepting new requests, lets requests that are already in flight complete withingetCompletionTimeout(), and is then closed. Later requests are sent on a new connection. The valueChronoUnit.FOREVER.getDurationrepresents an infinite age, which disables this mechanism and is the default.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
getPersistentConnectionMaxAgeJitter
double getPersistentConnectionMaxAgeJitter()The jitter applied to the persistent connection maximum age per connection, as a fraction of the configured age: with the default of 0.1 each connection is retired after between 90% and 110% of the configured age, so that connections that were opened together are not all retired at the same time. 0 disables jitter.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
getPingInterval
Duration getPingInterval() -
getPingTimeout
Duration getPingTimeout() -
incomingConnectionLevelBufferSize
int incomingConnectionLevelBufferSize() -
incomingStreamLevelBufferSize
int incomingStreamLevelBufferSize() -
logFrames
boolean logFrames() -
maxConcurrentStreams
int maxConcurrentStreams() -
maxFrameSize
int maxFrameSize()The largest frame payload this endpoint accepts, in bytes. A larger incoming frame is rejected with a FRAME_SIZE_ERROR on its frame header, before the payload is buffered. No larger SETTINGS_MAX_FRAME_SIZE is advertised, so a peer that follows the spec keeps to the 16 KiB default and the extra room is leniency for peers that do not. RFC 9113, section 4.2 constrains it to be between 16 KiB and 16 MiB - 1.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
maxHeaderListSize
int maxHeaderListSize()The maximum size of a decoded header list that this endpoint is prepared to accept, in bytes. The value is advertised to the peer via SETTINGS_MAX_HEADER_LIST_SIZE and the same limit is applied to the accumulated header block fragments of a HEADERS frame and its CONTINUATION frames.- Returns:
- (undocumented)
- Since:
- 1.4.1
-
outgoingControlFrameBufferSize
int outgoingControlFrameBufferSize() -
requestEntityChunkSize
int requestEntityChunkSize() -
withBaseConnectionBackoff
-
withCompletionTimeout
-
withIncomingConnectionLevelBufferSize
-
withIncomingStreamLevelBufferSize
-
withLogFrames
-
withMaxConcurrentStreams
-
withMaxConnectionBackoff
-
withMaxFrameSize
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withMaxHeaderListSize
- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.4.1
-
withMaxPersistentAttempts
-
withOutgoingControlFrameBufferSize
-
withPersistentConnectionMaxAge
PassChronoUnit.FOREVER.getDurationto disable the maximum connection age.- Parameters:
maxAge- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withPersistentConnectionMaxAgeJitter
- Parameters:
jitter- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withPingInterval
-
withPingTimeout
-
withRequestEntityChunkSize
-