Http2FrameCodecBuilder together with Http2MultiplexHandler.@Deprecated public class Http2MultiplexCodecBuilder extends AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>
Http2MultiplexCodec.| Modifier and Type | Method and Description |
|---|---|
Http2MultiplexCodecBuilder |
autoAckPingFrame(boolean autoAckPingFrame)
Deprecated.
Determine if PING frame should automatically be acknowledged or not.
|
Http2MultiplexCodecBuilder |
autoAckSettingsFrame(boolean autoAckSettings)
Deprecated.
Determine if settings frame should automatically be acknowledged and applied.
|
Http2MultiplexCodec |
build()
Deprecated.
Create a new
Http2ConnectionHandler. |
protected Http2MultiplexCodec |
build(Http2ConnectionDecoder decoder,
Http2ConnectionEncoder encoder,
Http2Settings initialSettings)
Deprecated.
Implement this method to create a new
Http2ConnectionHandler or its subtype instance. |
int |
decoderEnforceMaxConsecutiveEmptyDataFrames()
Deprecated.
Returns the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed.
|
Http2MultiplexCodecBuilder |
decoderEnforceMaxConsecutiveEmptyDataFrames(int maxConsecutiveEmptyFrames)
Deprecated.
Sets the maximum number of consecutive empty DATA frames (without end_of_stream flag) that are allowed before
the connection is closed.
|
Http2MultiplexCodecBuilder |
decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow,
int secondsPerWindow)
Deprecated.
Sets the maximum number RST frames that are allowed per window before
the connection is closed.
|
Http2MultiplexCodecBuilder |
decoupleCloseAndGoAway(boolean decoupleCloseAndGoAway)
Deprecated.
Determine if the
ChannelOutboundInvoker.close() should be coupled with goaway and graceful close. |
boolean |
encoderEnforceMaxConcurrentStreams()
Deprecated.
Returns if the encoder should queue frames if the maximum number of concurrent streams
would otherwise be exceeded.
|
Http2MultiplexCodecBuilder |
encoderEnforceMaxConcurrentStreams(boolean encoderEnforceMaxConcurrentStreams)
Deprecated.
Sets if the encoder should queue frames if the maximum number of concurrent streams
would otherwise be exceeded.
|
int |
encoderEnforceMaxQueuedControlFrames()
Deprecated.
Returns the maximum number of queued control frames that are allowed before the connection is closed.
|
Http2MultiplexCodecBuilder |
encoderEnforceMaxQueuedControlFrames(int maxQueuedControlFrames)
Deprecated.
Sets the maximum number of queued control frames that are allowed before the connection is closed.
|
Http2MultiplexCodecBuilder |
encoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow,
int secondsPerWindow)
Deprecated.
Sets the maximum number RST frames that are allowed per window before
the connection is closed.
|
Http2MultiplexCodecBuilder |
encoderIgnoreMaxHeaderListSize(boolean ignoreMaxHeaderListSize)
Deprecated.
Sets if the SETTINGS_MAX_HEADER_LIST_SIZE
should be ignored when encoding headers.
|
Http2MultiplexCodecBuilder |
flushPreface(boolean flushPreface)
Deprecated.
|
static Http2MultiplexCodecBuilder |
forClient(ChannelHandler childHandler)
Deprecated.
Creates a builder for an HTTP/2 client.
|
static Http2MultiplexCodecBuilder |
forServer(ChannelHandler childHandler)
Deprecated.
Creates a builder for an HTTP/2 server.
|
Http2FrameLogger |
frameLogger()
Deprecated.
Returns the logger that is used for the encoder and decoder.
|
Http2MultiplexCodecBuilder |
frameLogger(Http2FrameLogger frameLogger)
Deprecated.
Sets the logger that is used for the encoder and decoder.
|
long |
gracefulShutdownTimeoutMillis()
Deprecated.
Returns the graceful shutdown timeout of the
Http2Connection in milliseconds. |
Http2MultiplexCodecBuilder |
gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)
Deprecated.
Sets the graceful shutdown timeout of the
Http2Connection in milliseconds. |
Http2HeadersEncoder.SensitivityDetector |
headerSensitivityDetector()
Deprecated.
Returns the
Http2HeadersEncoder.SensitivityDetector to use. |
Http2MultiplexCodecBuilder |
headerSensitivityDetector(Http2HeadersEncoder.SensitivityDetector headerSensitivityDetector)
Deprecated.
Sets the
Http2HeadersEncoder.SensitivityDetector to use. |
Http2MultiplexCodecBuilder |
initialHuffmanDecodeCapacity(int initialHuffmanDecodeCapacity)
Deprecated.
|
Http2Settings |
initialSettings()
Deprecated.
Sets the
Http2Settings to use for the initial connection settings exchange. |
Http2MultiplexCodecBuilder |
initialSettings(Http2Settings settings)
Deprecated.
Sets the
Http2Settings to use for the initial connection settings exchange. |
boolean |
isServer()
Deprecated.
Returns if
AbstractHttp2ConnectionHandlerBuilder.build() will to create a Http2Connection in server mode (true)
or client mode (false). |
boolean |
isValidateHeaders()
Deprecated.
Returns if HTTP headers should be validated according to
RFC 7540, 8.1.2.6.
|
int |
maxReservedStreams()
Deprecated.
Get the maximum number of streams which can be in the reserved state at any given time.
|
Http2MultiplexCodecBuilder |
maxReservedStreams(int maxReservedStreams)
Deprecated.
Set the maximum number of streams which can be in the reserved state at any given time.
|
Http2MultiplexCodecBuilder |
validateHeaders(boolean validateHeaders)
Deprecated.
Sets if HTTP headers should be validated according to
RFC 7540, 8.1.2.6.
|
Http2MultiplexCodecBuilder |
withUpgradeStreamHandler(ChannelHandler upgradeStreamHandler)
Deprecated.
|
codec, connection, connection, decoder, decoupleCloseAndGoAway, encoder, flushPreface, frameListener, frameListener, isAutoAckPingFrame, isAutoAckSettingsFrame, promisedRequestVerifier, promisedRequestVerifier, self, serverpublic static Http2MultiplexCodecBuilder forClient(ChannelHandler childHandler)
childHandler - the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable.public static Http2MultiplexCodecBuilder forServer(ChannelHandler childHandler)
childHandler - the handler added to channels for remotely-created streams. It must be
ChannelHandler.Sharable.public Http2MultiplexCodecBuilder withUpgradeStreamHandler(ChannelHandler upgradeStreamHandler)
public Http2Settings initialSettings()
AbstractHttp2ConnectionHandlerBuilderHttp2Settings to use for the initial connection settings exchange.public Http2MultiplexCodecBuilder initialSettings(Http2Settings settings)
AbstractHttp2ConnectionHandlerBuilderHttp2Settings to use for the initial connection settings exchange.public long gracefulShutdownTimeoutMillis()
AbstractHttp2ConnectionHandlerBuilderHttp2Connection in milliseconds. Returns -1 if the
timeout is indefinite.public Http2MultiplexCodecBuilder gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)
AbstractHttp2ConnectionHandlerBuilderHttp2Connection in milliseconds.public boolean isServer()
AbstractHttp2ConnectionHandlerBuilderAbstractHttp2ConnectionHandlerBuilder.build() will to create a Http2Connection in server mode (true)
or client mode (false).isServer in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>public int maxReservedStreams()
AbstractHttp2ConnectionHandlerBuilderBy default this value will be ignored on the server for local endpoint. This is because the RFC provides no way to explicitly communicate a limit to how many states can be in the reserved state, and instead relies on the peer to send RST_STREAM frames when they will be rejected.
public Http2MultiplexCodecBuilder maxReservedStreams(int maxReservedStreams)
AbstractHttp2ConnectionHandlerBuilderpublic boolean isValidateHeaders()
AbstractHttp2ConnectionHandlerBuilderpublic Http2MultiplexCodecBuilder validateHeaders(boolean validateHeaders)
AbstractHttp2ConnectionHandlerBuilderpublic Http2FrameLogger frameLogger()
AbstractHttp2ConnectionHandlerBuilderframeLogger in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>Http2FrameLogger if set, or null if not set.public Http2MultiplexCodecBuilder frameLogger(Http2FrameLogger frameLogger)
AbstractHttp2ConnectionHandlerBuilderframeLogger in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>public boolean encoderEnforceMaxConcurrentStreams()
AbstractHttp2ConnectionHandlerBuilderpublic Http2MultiplexCodecBuilder encoderEnforceMaxConcurrentStreams(boolean encoderEnforceMaxConcurrentStreams)
AbstractHttp2ConnectionHandlerBuilderpublic int encoderEnforceMaxQueuedControlFrames()
AbstractHttp2ConnectionHandlerBuilder0 means no protection is in place.public Http2MultiplexCodecBuilder encoderEnforceMaxQueuedControlFrames(int maxQueuedControlFrames)
AbstractHttp2ConnectionHandlerBuilder0 means no protection should be applied.public Http2HeadersEncoder.SensitivityDetector headerSensitivityDetector()
AbstractHttp2ConnectionHandlerBuilderHttp2HeadersEncoder.SensitivityDetector to use.public Http2MultiplexCodecBuilder headerSensitivityDetector(Http2HeadersEncoder.SensitivityDetector headerSensitivityDetector)
AbstractHttp2ConnectionHandlerBuilderHttp2HeadersEncoder.SensitivityDetector to use.public Http2MultiplexCodecBuilder encoderIgnoreMaxHeaderListSize(boolean ignoreMaxHeaderListSize)
AbstractHttp2ConnectionHandlerBuilderencoderIgnoreMaxHeaderListSize in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>ignoreMaxHeaderListSize - true to ignore
SETTINGS_MAX_HEADER_LIST_SIZE.@Deprecated public Http2MultiplexCodecBuilder initialHuffmanDecodeCapacity(int initialHuffmanDecodeCapacity)
AbstractHttp2ConnectionHandlerBuilderpublic Http2MultiplexCodecBuilder autoAckSettingsFrame(boolean autoAckSettings)
AbstractHttp2ConnectionHandlerBuilderautoAckSettingsFrame in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>public Http2MultiplexCodecBuilder autoAckPingFrame(boolean autoAckPingFrame)
AbstractHttp2ConnectionHandlerBuilderautoAckPingFrame in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>public Http2MultiplexCodecBuilder decoupleCloseAndGoAway(boolean decoupleCloseAndGoAway)
AbstractHttp2ConnectionHandlerBuilderChannelOutboundInvoker.close() should be coupled with goaway and graceful close.decoupleCloseAndGoAway in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>decoupleCloseAndGoAway - true to make ChannelOutboundInvoker.close() directly close the underlying
transport, and not attempt graceful closure via GOAWAY.this.public Http2MultiplexCodecBuilder flushPreface(boolean flushPreface)
AbstractHttp2ConnectionHandlerBuilderChannel becomes active or not.
Client may choose to opt-out from this automatic behavior and manage flush manually if it's ready to send request frames immediately after the preface. It may help to avoid unnecessary latency.
flushPreface in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>flushPreface - true to automatically flush, false otherwise.this.public int decoderEnforceMaxConsecutiveEmptyDataFrames()
AbstractHttp2ConnectionHandlerBuilder0 means no protection is in place.public Http2MultiplexCodecBuilder decoderEnforceMaxConsecutiveEmptyDataFrames(int maxConsecutiveEmptyFrames)
AbstractHttp2ConnectionHandlerBuilder0 means no protection should be applied.public Http2MultiplexCodecBuilder decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow)
AbstractHttp2ConnectionHandlerBuilder0 for any of the parameters means no protection should be applied.public Http2MultiplexCodecBuilder encoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow)
AbstractHttp2ConnectionHandlerBuilder0 for any of the parameters means no protection should be applied.public Http2MultiplexCodec build()
AbstractHttp2ConnectionHandlerBuilderHttp2ConnectionHandler.build in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>protected Http2MultiplexCodec build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings)
AbstractHttp2ConnectionHandlerBuilderHttp2ConnectionHandler or its subtype instance.
The return of this method will be subject to the following:
AbstractHttp2ConnectionHandlerBuilder.frameListener(Http2FrameListener) will be set if not already set in the decoderAbstractHttp2ConnectionHandlerBuilder.gracefulShutdownTimeoutMillis(long) will always be setbuild in class AbstractHttp2ConnectionHandlerBuilder<Http2MultiplexCodec,Http2MultiplexCodecBuilder>Copyright © 2008–2025 The Netty Project. All rights reserved.