Interface Http2ServerSettings
- All Superinterfaces:
Http2CommonSettings,Http2ServerSettings
- All Known Implementing Classes:
Http2ServerSettings.Http2ServerSettingsImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionintintscala.collection.immutable.Set<String>scala.concurrent.duration.FiniteDurationintintscala.Option<Http2InternalServerSettings>booleanintscala.concurrent.duration.DurationThe maximum time a connection is kept open before the server closes it gracefully.scala.concurrent.duration.DurationThe time that requests in flight are given to complete after a connection reachedmaxConnectionAge()and the GOAWAY frame was sent.doubleThe jitter applied tomaxConnectionAge()per connection, as a fraction of the configured age: with the default of 0.1 each connection is closed after between 90% and 110% of the configured age, so that connections that were opened together are not all closed at the same time. 0 disables jitter.intThe 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.intintscala.concurrent.duration.FiniteDurationscala.concurrent.duration.FiniteDurationintwithFrameTypeThrottleBurst(int burst) withFrameTypeThrottleCost(int cost) withFrameTypeThrottleFrameTypes(scala.collection.immutable.Set<String> frameTypes) withFrameTypeThrottleInterval(scala.concurrent.duration.FiniteDuration interval) withIncomingConnectionLevelBufferSize(int newValue) withIncomingStreamLevelBufferSize(int newValue) withLogFrames(boolean shouldLog) withMaxConcurrentStreams(int newValue) withMaxConnectionAge(scala.concurrent.duration.Duration age) withMaxConnectionAgeGrace(scala.concurrent.duration.Duration grace) withMaxConnectionAgeJitter(double jitter) withMaxFrameSize(int newValue) withMaxHeaderListSize(int newValue) withMinCollectStrictEntitySize(int newValue) withOutgoingControlFrameBufferSize(int newValue) 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.Http2ServerSettings
getFrameTypeThrottleBurst, getFrameTypeThrottleCost, getFrameTypeThrottleFrameTypes, getFrameTypeThrottleInterval, getIncomingConnectionLevelBufferSize, getIncomingStreamLevelBufferSize, getMaxConcurrentStreams, getMaxConnectionAge, getMaxConnectionAgeGrace, getMaxConnectionAgeJitter, getMaxFrameSize, getMaxHeaderListSize, getOutgoingControlFrameBufferSize, getPingInterval, getPingTimeout, getRequestEntityChunkSize, withFrameTypeThrottleInterval, withMaxConnectionAge, withMaxConnectionAgeGrace, withPingInterval, withPingTimeout
-
Method Details
-
requestEntityChunkSize
int requestEntityChunkSize()- Specified by:
requestEntityChunkSizein interfaceHttp2CommonSettings
-
withRequestEntityChunkSize
- Specified by:
withRequestEntityChunkSizein interfaceHttp2ServerSettings
-
incomingConnectionLevelBufferSize
int incomingConnectionLevelBufferSize()- Specified by:
incomingConnectionLevelBufferSizein interfaceHttp2CommonSettings
-
withIncomingConnectionLevelBufferSize
- Specified by:
withIncomingConnectionLevelBufferSizein interfaceHttp2ServerSettings
-
incomingStreamLevelBufferSize
int incomingStreamLevelBufferSize()- Specified by:
incomingStreamLevelBufferSizein interfaceHttp2CommonSettings
-
withIncomingStreamLevelBufferSize
- Specified by:
withIncomingStreamLevelBufferSizein interfaceHttp2ServerSettings
-
minCollectStrictEntitySize
int minCollectStrictEntitySize()- Specified by:
minCollectStrictEntitySizein interfaceHttp2CommonSettings- Specified by:
minCollectStrictEntitySizein interfaceHttp2ServerSettings
-
withMinCollectStrictEntitySize
- Specified by:
withMinCollectStrictEntitySizein interfaceHttp2ServerSettings
-
maxConcurrentStreams
int maxConcurrentStreams()- Specified by:
maxConcurrentStreamsin interfaceHttp2CommonSettings
-
withMaxConcurrentStreams
- Specified by:
withMaxConcurrentStreamsin interfaceHttp2ServerSettings
-
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 interfaceHttp2CommonSettings- Returns:
- (undocumented)
- Since:
- 1.4.1
-
withMaxHeaderListSize
- Specified by:
withMaxHeaderListSizein interfaceHttp2ServerSettings- 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 interfaceHttp2CommonSettings- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withMaxFrameSize
- Specified by:
withMaxFrameSizein interfaceHttp2ServerSettings- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
outgoingControlFrameBufferSize
int outgoingControlFrameBufferSize()- Specified by:
outgoingControlFrameBufferSizein interfaceHttp2CommonSettings
-
withOutgoingControlFrameBufferSize
- Specified by:
withOutgoingControlFrameBufferSizein interfaceHttp2ServerSettings
-
logFrames
boolean logFrames()- Specified by:
logFramesin interfaceHttp2CommonSettings- Specified by:
logFramesin interfaceHttp2ServerSettings
-
withLogFrames
- Specified by:
withLogFramesin interfaceHttp2ServerSettings
-
pingInterval
scala.concurrent.duration.FiniteDuration pingInterval()- Specified by:
pingIntervalin interfaceHttp2CommonSettings
-
withPingInterval
-
pingTimeout
scala.concurrent.duration.FiniteDuration pingTimeout()- Specified by:
pingTimeoutin interfaceHttp2CommonSettings
-
withPingTimeout
-
maxConnectionAge
scala.concurrent.duration.Duration maxConnectionAge()The maximum time a connection is kept open before the server closes it gracefully. When the age of a connection exceeds this value, the server sends a GOAWAY frame, lets requests that are already in flight complete withinmaxConnectionAgeGrace(), and then closes the connection. If the connection is already being terminated when its age expires, for example because the server binding is being terminated, the expiry has no effect and the termination in progress keeps its own deadline. The valueDuration.Infdisables this mechanism and is the default.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withMaxConnectionAge
- Parameters:
age- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
maxConnectionAgeGrace
scala.concurrent.duration.Duration maxConnectionAgeGrace()The time that requests in flight are given to complete after a connection reachedmaxConnectionAge()and the GOAWAY frame was sent. When the grace period expires, the connection is closed even if requests are still in flight. The valueDuration.Infdisables the limit, so that the connection is closed only once all requests in flight have completed.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withMaxConnectionAgeGrace
- Parameters:
grace- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
maxConnectionAgeJitter
double maxConnectionAgeJitter()The jitter applied tomaxConnectionAge()per connection, as a fraction of the configured age: with the default of 0.1 each connection is closed after between 90% and 110% of the configured age, so that connections that were opened together are not all closed at the same time. 0 disables jitter.- Returns:
- (undocumented)
- Since:
- 2.0.0
-
withMaxConnectionAgeJitter
- Specified by:
withMaxConnectionAgeJitterin interfaceHttp2ServerSettings- Parameters:
jitter- (undocumented)- Returns:
- (undocumented)
- Since:
- 2.0.0
-
frameTypeThrottleFrameTypes
scala.collection.immutable.Set<String> frameTypeThrottleFrameTypes() -
withFrameTypeThrottleFrameTypes
Http2ServerSettings.Http2ServerSettingsImpl withFrameTypeThrottleFrameTypes(scala.collection.immutable.Set<String> frameTypes) -
frameTypeThrottleCost
int frameTypeThrottleCost() -
withFrameTypeThrottleCost
-
frameTypeThrottleBurst
int frameTypeThrottleBurst() -
withFrameTypeThrottleBurst
-
frameTypeThrottleInterval
scala.concurrent.duration.FiniteDuration frameTypeThrottleInterval() -
withFrameTypeThrottleInterval
Http2ServerSettings.Http2ServerSettingsImpl withFrameTypeThrottleInterval(scala.concurrent.duration.FiniteDuration interval) -
internalSettings
scala.Option<Http2InternalServerSettings> internalSettings() -
withInternalSettings
-