Interface Http2ClientSettings
- All Superinterfaces:
Http2ClientSettings,Http2CommonSettings
- All Known Implementing Classes:
Http2ClientSettings.Http2ClientSettingsImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.duration.FiniteDurationscala.concurrent.duration.FiniteDurationintintscala.Option<Http2InternalClientSettings>booleanintscala.concurrent.duration.FiniteDurationintThe 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.intintintscala.concurrent.duration.DurationThe maximum age of a connection created bymanagedPersistentHttp2ormanagedPersistentHttp2WithPriorKnowledge.doubleThe jitter applied topersistentConnectionMaxAge()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.scala.concurrent.duration.FiniteDurationscala.concurrent.duration.FiniteDurationintwithBaseConnectionBackoff(scala.concurrent.duration.FiniteDuration backoff) withCompletionTimeout(scala.concurrent.duration.FiniteDuration timeout) withIncomingConnectionLevelBufferSize(int newValue) withIncomingStreamLevelBufferSize(int newValue) withLogFrames(boolean shouldLog) withMaxConcurrentStreams(int newValue) withMaxConnectionBackoff(scala.concurrent.duration.FiniteDuration backoff) withMaxFrameSize(int newValue) withMaxHeaderListSize(int newValue) withMaxPersistentAttempts(int max) withOutgoingControlFrameBufferSize(int newValue) withPersistentConnectionMaxAge(scala.concurrent.duration.Duration maxAge) withPersistentConnectionMaxAgeJitter(double jitter) withPingInterval(scala.concurrent.duration.FiniteDuration time) withPingTimeout(scala.concurrent.duration.FiniteDuration timeout) withRequestEntityChunkSize(int newValue) Methods inherited from interface org.apache.pekko.http.javadsl.settings.Http2ClientSettings
getBaseConnectionBackoff, getCompletionTimeout, getMaxConnectionBackoff, getMaxPersistentAttempts, getPersistentConnectionMaxAge, getPersistentConnectionMaxAgeJitter, getPingInterval, getPingTimeout, withBaseConnectionBackoff, withCompletionTimeout, withMaxConnectionBackoff, withPersistentConnectionMaxAge, withPingInterval, withPingTimeout
-
Method Details
-
requestEntityChunkSize
int requestEntityChunkSize()- Specified by:
requestEntityChunkSizein interfaceHttp2ClientSettings- Specified by:
requestEntityChunkSizein interfaceHttp2CommonSettings
-
withRequestEntityChunkSize
- Specified by:
withRequestEntityChunkSizein interfaceHttp2ClientSettings
-
incomingConnectionLevelBufferSize
int incomingConnectionLevelBufferSize()- Specified by:
incomingConnectionLevelBufferSizein interfaceHttp2ClientSettings- Specified by:
incomingConnectionLevelBufferSizein interfaceHttp2CommonSettings
-
withIncomingConnectionLevelBufferSize
- Specified by:
withIncomingConnectionLevelBufferSizein interfaceHttp2ClientSettings
-
incomingStreamLevelBufferSize
int incomingStreamLevelBufferSize()- Specified by:
incomingStreamLevelBufferSizein interfaceHttp2ClientSettings- Specified by:
incomingStreamLevelBufferSizein interfaceHttp2CommonSettings
-
withIncomingStreamLevelBufferSize
- Specified by:
withIncomingStreamLevelBufferSizein interfaceHttp2ClientSettings
-
minCollectStrictEntitySize
int minCollectStrictEntitySize()- Specified by:
minCollectStrictEntitySizein interfaceHttp2CommonSettings
-
maxConcurrentStreams
int maxConcurrentStreams()- Specified by:
maxConcurrentStreamsin interfaceHttp2ClientSettings- Specified by:
maxConcurrentStreamsin interfaceHttp2CommonSettings
-
withMaxConcurrentStreams
- Specified by:
withMaxConcurrentStreamsin interfaceHttp2ClientSettings
-
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.- Specified by:
maxHeaderListSizein interfaceHttp2ClientSettings- Specified by:
maxHeaderListSizein interfaceHttp2CommonSettings- Returns:
- (undocumented)
- Since:
- 1.4.1
-
withMaxHeaderListSize
- Specified by:
withMaxHeaderListSizein interfaceHttp2ClientSettings- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.4.1
-
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.- Specified by:
maxFrameSizein interfaceHttp2ClientSettings- Specified by:
maxFrameSizein interfaceHttp2CommonSettings- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withMaxFrameSize
- Specified by:
withMaxFrameSizein interfaceHttp2ClientSettings- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
outgoingControlFrameBufferSize
int outgoingControlFrameBufferSize()- Specified by:
outgoingControlFrameBufferSizein interfaceHttp2ClientSettings- Specified by:
outgoingControlFrameBufferSizein interfaceHttp2CommonSettings
-
withOutgoingControlFrameBufferSize
- Specified by:
withOutgoingControlFrameBufferSizein interfaceHttp2ClientSettings
-
logFrames
boolean logFrames()- Specified by:
logFramesin interfaceHttp2ClientSettings- Specified by:
logFramesin interfaceHttp2CommonSettings
-
withLogFrames
- Specified by:
withLogFramesin interfaceHttp2ClientSettings
-
pingInterval
scala.concurrent.duration.FiniteDuration pingInterval()- Specified by:
pingIntervalin interfaceHttp2CommonSettings
-
withPingInterval
-
pingTimeout
scala.concurrent.duration.FiniteDuration pingTimeout()- Specified by:
pingTimeoutin interfaceHttp2CommonSettings
-
withPingTimeout
-
maxPersistentAttempts
int maxPersistentAttempts() -
withMaxPersistentAttempts
- Specified by:
withMaxPersistentAttemptsin interfaceHttp2ClientSettings
-
persistentConnectionMaxAge
scala.concurrent.duration.Duration persistentConnectionMaxAge()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 withincompletionTimeout(), and is then closed. Later requests are sent on a new connection. The valueDuration.Infdisables this mechanism and is the default.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withPersistentConnectionMaxAge
- Parameters:
maxAge- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
persistentConnectionMaxAgeJitter
double persistentConnectionMaxAgeJitter()The jitter applied topersistentConnectionMaxAge()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
-
withPersistentConnectionMaxAgeJitter
- Specified by:
withPersistentConnectionMaxAgeJitterin interfaceHttp2ClientSettings- Parameters:
jitter- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
completionTimeout
scala.concurrent.duration.FiniteDuration completionTimeout() -
withCompletionTimeout
-
baseConnectionBackoff
scala.concurrent.duration.FiniteDuration baseConnectionBackoff() -
withBaseConnectionBackoff
-
maxConnectionBackoff
scala.concurrent.duration.FiniteDuration maxConnectionBackoff() -
withMaxConnectionBackoff
-
internalSettings
scala.Option<Http2InternalClientSettings> internalSettings() -
withInternalSettings
-