Top Description Fields Constructors Methods
io.vertx.core.http.impl

pack-priv Class VertxHttp2ConnectionHandlerBuilder<C extends Http2ConnectionBase>

extends AbstractHttp2ConnectionHandlerBuilder<VertxHttp2ConnectionHandler<C extends Http2ConnectionBase>, VertxHttp2ConnectionHandlerBuilder<C extends Http2ConnectionBase>>
Class Inheritance
Imports
io.netty.buffer.ByteBuf, io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.compression.CompressionOptions, io.netty.handler.codec.http2.*, io.netty.handler.logging.LogLevel, java.util.function.Function

Todo : don't use the parent builder that is too complicated and restrictive
Author
Julien Viet

Field Summary

Modifier and TypeField and Description
private CompressionOptions[]
private Function<VertxHttp2ConnectionHandler<C>, C>
private boolean
private boolean
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected VertxHttp2ConnectionHandler<C>
protected VertxHttp2ConnectionHandler<C>
build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings)

Implements abstract io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build.

Implement this method to create a new Http2ConnectionHandler or its subtype instance.

private void
pack-priv VertxHttp2ConnectionHandlerBuilder<C>
protected VertxHttp2ConnectionHandlerBuilder<C>
decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow)

Overrides io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.decoderEnforceMaxRstFramesPerWindow.

Sets the maximum number RST frames that are allowed per window before the connection is closed.

protected VertxHttp2ConnectionHandlerBuilder<C>
gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)

Overrides io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.gracefulShutdownTimeoutMillis.

Sets the graceful shutdown timeout of the Http2Connection in milliseconds.

pack-priv VertxHttp2ConnectionHandlerBuilder<C>
pack-priv VertxHttp2ConnectionHandlerBuilder<C>
logEnabled(boolean logEnabled)

protected VertxHttp2ConnectionHandlerBuilder<C>
server(boolean isServer)

Overrides io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.server.

Sets if build() will to create a Http2Connection in server mode (true) or client mode (false).

pack-priv VertxHttp2ConnectionHandlerBuilder<C>
useCompression(CompressionOptions[] compressionOptions)

pack-priv VertxHttp2ConnectionHandlerBuilder<C>
useDecompression(boolean useDecompression)

pack-priv VertxHttp2ConnectionHandlerBuilder<C>
useUniformStreamByteDistributor(boolean useUniformStreamByteDistributor)

Inherited from io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder:
autoAckPingFrameautoAckSettingsFramecodecconnectionconnectiondecoderdecoderEnforceMaxConsecutiveEmptyDataFramesdecoderEnforceMaxConsecutiveEmptyDataFramesdecoupleCloseAndGoAwaydecoupleCloseAndGoAwayencoderencoderEnforceMaxConcurrentStreamsencoderEnforceMaxConcurrentStreamsencoderEnforceMaxQueuedControlFramesencoderEnforceMaxQueuedControlFramesencoderIgnoreMaxHeaderListSizeflushPrefaceflushPrefaceframeListenerframeListenerframeLoggerframeLoggergracefulShutdownTimeoutMillisheaderSensitivityDetectorheaderSensitivityDetectorinitialHuffmanDecodeCapacityinitialSettingsinitialSettingsisAutoAckPingFrameisAutoAckSettingsFrameisServerisValidateHeadersmaxReservedStreamsmaxReservedStreamspromisedRequestVerifierpromisedRequestVerifierselfvalidateHeaders

Field Detail

compressionOptionsback to summary
private CompressionOptions[] compressionOptions
connectionFactoryback to summary
private Function<VertxHttp2ConnectionHandler<C>, C> connectionFactory
logEnabledback to summary
private boolean logEnabled
serverback to summary
private boolean server
useDecompressionback to summary
private boolean useDecompression
useUniformStreamByteDistributorback to summary
private boolean useUniformStreamByteDistributor

Constructor Detail

VertxHttp2ConnectionHandlerBuilderback to summary
pack-priv VertxHttp2ConnectionHandlerBuilder()

Method Detail

buildback to summary
protected VertxHttp2ConnectionHandler<C> build()

Overrides io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build.

Doc from io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build.

Create a new Http2ConnectionHandler.

Annotations
@Override
buildback to summary
protected VertxHttp2ConnectionHandler<C> build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings) throws Exception

Implements abstract io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build.

Doc from io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.build.

Implement this method to create a new Http2ConnectionHandler or its subtype instance.

The return of this method will be subject to the following:

Annotations
@Override
configureStreamByteDistributorback to summary
private void configureStreamByteDistributor()
connectionFactoryback to summary
pack-priv VertxHttp2ConnectionHandlerBuilder<C> connectionFactory(Function<VertxHttp2ConnectionHandler<C>, C> connectionFactory)
decoderEnforceMaxRstFramesPerWindowback to summary
protected VertxHttp2ConnectionHandlerBuilder<C> decoderEnforceMaxRstFramesPerWindow(int maxRstFramesPerWindow, int secondsPerWindow)

Overrides io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.decoderEnforceMaxRstFramesPerWindow.

Doc from io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.decoderEnforceMaxRstFramesPerWindow.

Sets the maximum number RST frames that are allowed per window before the connection is closed. This allows to protect against the remote peer flooding us with such frames and so use up a lot of CPU. 0 for any of the parameters means no protection should be applied.

Annotations
@Override
gracefulShutdownTimeoutMillisback to summary
protected VertxHttp2ConnectionHandlerBuilder<C> gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis)

Overrides io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.gracefulShutdownTimeoutMillis.

Doc from io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.gracefulShutdownTimeoutMillis.

Sets the graceful shutdown timeout of the Http2Connection in milliseconds.

Annotations
@Override
initialSettingsback to summary
pack-priv VertxHttp2ConnectionHandlerBuilder<C> initialSettings(Http2Settings settings)
logEnabledback to summary
pack-priv VertxHttp2ConnectionHandlerBuilder<C> logEnabled(boolean logEnabled)
serverback to summary
protected VertxHttp2ConnectionHandlerBuilder<C> server(boolean isServer)

Overrides io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.server.

Doc from io.netty.handler.codec.http2.AbstractHttp2ConnectionHandlerBuilder.server.

Sets if build() will to create a Http2Connection in server mode (true) or client mode (false).

useCompressionback to summary
pack-priv VertxHttp2ConnectionHandlerBuilder<C> useCompression(CompressionOptions[] compressionOptions)
useDecompressionback to summary
pack-priv VertxHttp2ConnectionHandlerBuilder<C> useDecompression(boolean useDecompression)
useUniformStreamByteDistributorback to summary
pack-priv VertxHttp2ConnectionHandlerBuilder<C> useUniformStreamByteDistributor(boolean useUniformStreamByteDistributor)