Filter implementations.
Http2ClientFilter, Http2ServerFilter
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile int | |
| private volatile float | |
| public static final int | |
| public static final int | |
| public static final float | |
| public static final float | |
| private volatile boolean | |
| private final ExecutorService | |
| private volatile int | |
| private volatile int | |
| private volatile int | |
| private volatile int | |
| private volatile boolean | |
| private volatile boolean | |
| private volatile float | |
| private final ThreadPoolConfig |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Http2Configuration. | |
| public int | getCleanFrequencyCheck()
Returns: how often, in terms of closed streams, the streams structure will be checked for cleaning. |
| public float | |
| public ExecutorService | |
| public int | getInitialWindowSize()
Returns: the default initial stream window size (in bytes) for new HTTP2 connections. |
| public int | getMaxConcurrentStreams()
Returns: the default maximum number of concurrent streams allowed for one session. |
| public int | |
| public int | |
| public float | getStreamsHighWaterMark()
Returns: the high-water mark indicating streams old closed streams should be cleaned up. |
| public ThreadPoolConfig | |
| public boolean | isDisableCipherCheck()
Returns: whether or not strict cipher suite checking against RFC 7540's blacklist is performed or not. |
| public boolean | isPriorKnowledge()
Returns: |
| public boolean | |
| public void | setCleanFrequencyCheck(final int cleanFrequencyCheck)
Set the number of streams that must be closed before checking if the number of streams exceeds the high-water mark. |
| public void | setCleanPercentage(final float cleanPercentage)
The number of streams to attempt to remove from the streams structure. |
| public void | setDisableCipherCheck(final boolean
pass disableCipherCheck)true to disable the checking.Allows the developer to disable strict cipher suite checking of the connection against RFC 7540's blacklist. |
| public void | setInitialWindowSize(final int initialWindowSize)
Sets the default initial stream window size (in bytes) for new HTTP2 connections. |
| public void | setMaxConcurrentStreams(final int maxConcurrentStreams)
Sets the default maximum number of concurrent streams allowed for one session. |
| public void | setMaxFramePayloadSize(final int maxFramePayloadSize)
Sets the maximum allowed HTTP2 frame payload size. |
| public void | setMaxHeaderListSize(final int maxHeaderListSize)
Set the maximum size, in bytes, of the header list. |
| public void | setPriorKnowledge(final boolean
true if it's known that the server supports HTTP/2. By default no prior knowledge
is assumed.Control how the HTTP/2 connection is established with the server. |
| public void | setPushEnabled(final boolean pushEnabled)
Configure whether push should be allowed by the server endpoint. |
| public void | setStreamsHighWaterMark(final float streamsHighWaterMark)
Streams are maintained and periodically cleaned when the stream count (open or otherwise) surpasses the the specified high-water mark. |
| cleanFrequencyCheck | back to summary |
|---|---|
| private volatile int cleanFrequencyCheck | |
| cleanPercentage | back to summary |
|---|---|
| private volatile float cleanPercentage | |
| DEFAULT_CLEAN_FREQUENCY_CHECK | back to summary |
|---|---|
| public static final int DEFAULT_CLEAN_FREQUENCY_CHECK | |
| DEFAULT_MAX_HEADER_LIST_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_MAX_HEADER_LIST_SIZE | |
| DEFAULT_STREAMS_CLEAN_PERCENTAGE | back to summary |
|---|---|
| public static final float DEFAULT_STREAMS_CLEAN_PERCENTAGE | |
| DEFAULT_STREAMS_HIGH_WATER_MARK | back to summary |
|---|---|
| public static final float DEFAULT_STREAMS_HIGH_WATER_MARK | |
| disableCipherCheck | back to summary |
|---|---|
| private volatile boolean disableCipherCheck | |
| executorService | back to summary |
|---|---|
| private final ExecutorService executorService | |
| initialWindowSize | back to summary |
|---|---|
| private volatile int initialWindowSize | |
| maxConcurrentStreams | back to summary |
|---|---|
| private volatile int maxConcurrentStreams | |
| maxFramePayloadSize | back to summary |
|---|---|
| private volatile int maxFramePayloadSize | |
| maxHeaderListSize | back to summary |
|---|---|
| private volatile int maxHeaderListSize | |
| priorKnowledge | back to summary |
|---|---|
| private volatile boolean priorKnowledge | |
| pushEnabled | back to summary |
|---|---|
| private volatile boolean pushEnabled | |
| streamsHighWaterMark | back to summary |
|---|---|
| private volatile float streamsHighWaterMark | |
| threadPoolConfig | back to summary |
|---|---|
| private final ThreadPoolConfig threadPoolConfig | |
| Http2Configuration | back to summary |
|---|---|
| private Http2Configuration(final Http2Configuration. | |
| builder | back to summary |
|---|---|
public static Http2Configuration.
| |
| getCleanFrequencyCheck | back to summary |
|---|---|
public int getCleanFrequencyCheck()
| |
| getCleanPercentage | back to summary |
|---|---|
public float getCleanPercentage()
| |
| getExecutorService | back to summary |
|---|---|
public ExecutorService getExecutorService()
| |
| getInitialWindowSize | back to summary |
|---|---|
public int getInitialWindowSize()
| |
| getMaxConcurrentStreams | back to summary |
|---|---|
public int getMaxConcurrentStreams()
| |
| getMaxFramePayloadSize | back to summary |
|---|---|
public int getMaxFramePayloadSize()
| |
| getMaxHeaderListSize | back to summary |
|---|---|
public int getMaxHeaderListSize()
| |
| getStreamsHighWaterMark | back to summary |
|---|---|
public float getStreamsHighWaterMark()
| |
| getThreadPoolConfig | back to summary |
|---|---|
public ThreadPoolConfig getThreadPoolConfig()
| |
| isDisableCipherCheck | back to summary |
|---|---|
public boolean isDisableCipherCheck()
| |
| isPriorKnowledge | back to summary |
|---|---|
public boolean isPriorKnowledge()
| |
| isPushEnabled | back to summary |
|---|---|
public boolean isPushEnabled()
| |
| setCleanFrequencyCheck | back to summary |
|---|---|
| public void setCleanFrequencyCheck(final int cleanFrequencyCheck) Set the number of streams that must be closed before checking if the number of streams exceeds the high-water mark. | |
| setCleanPercentage | back to summary |
|---|---|
| public void setCleanPercentage(final float cleanPercentage) The number of streams to attempt to remove from the streams structure. Note that only closed streams will ultimately be removed. This value is applied against the computed result for the streams high water mark. For example, if the max concurrent streams is 100 and the mark percentage is .5, then the high water mark for a clean attempt would be 50. The number of streams to process in the clean attempt, assuming the clean percentage is .5, would be 25. | |
| setDisableCipherCheck | back to summary |
|---|---|
| public void setDisableCipherCheck(final boolean disableCipherCheck) Allows the developer to disable strict cipher suite checking of the connection against RFC 7540's blacklist.
| |
| setInitialWindowSize | back to summary |
|---|---|
| public void setInitialWindowSize(final int initialWindowSize) Sets the default initial stream window size (in bytes) for new HTTP2 connections. | |
| setMaxConcurrentStreams | back to summary |
|---|---|
| public void setMaxConcurrentStreams(final int maxConcurrentStreams) Sets the default maximum number of concurrent streams allowed for one session. Negative value means "unlimited". | |
| setMaxFramePayloadSize | back to summary |
|---|---|
| public void setMaxFramePayloadSize(final int maxFramePayloadSize) Sets the maximum allowed HTTP2 frame payload size. | |
| setMaxHeaderListSize | back to summary |
|---|---|
| public void setMaxHeaderListSize(final int maxHeaderListSize) Set the maximum size, in bytes, of the header list. | |
| setPriorKnowledge | back to summary |
|---|---|
| public void setPriorKnowledge(final boolean priorKnowledge) Control how the HTTP/2 connection is established with the server.
| |
| setPushEnabled | back to summary |
|---|---|
| public void setPushEnabled(final boolean pushEnabled) Configure whether push should be allowed by the server endpoint. | |
| setStreamsHighWaterMark | back to summary |
|---|---|
| public void setStreamsHighWaterMark(final float streamsHighWaterMark) Streams are maintained and periodically cleaned when the stream count (open or otherwise) surpasses the the specified high-water mark. This value is applied against the max concurrent streams for the endpoint which HTTP2 is being configured for. For example, if the max concurrent streams is 100 and the mark percentage is .5, then the high water mark for a clean attempt would be 50. | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private float | |
| private boolean | |
| private ExecutorService | |
| private int | |
| private int | |
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private float | |
| private ThreadPoolConfig |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Http2Configuration | |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | executorService(final ExecutorService val)
Specifies a pre-existing |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | |
| public Http2Configuration. | threadPoolConfig(final ThreadPoolConfig val)
Specifies a thread pool configuration that will be used to create a new |
| cleanFrequencyCheck | back to summary |
|---|---|
| private int cleanFrequencyCheck | |
| cleanPercentage | back to summary |
|---|---|
| private float cleanPercentage | |
| disableCipherCheck | back to summary |
|---|---|
| private boolean disableCipherCheck | |
| executorService | back to summary |
|---|---|
| private ExecutorService executorService | |
| initialWindowSize | back to summary |
|---|---|
| private int initialWindowSize | |
| maxConcurrentStreams | back to summary |
|---|---|
| private int maxConcurrentStreams | |
| maxFramePayloadSize | back to summary |
|---|---|
| private int maxFramePayloadSize | |
| maxHeaderListSize | back to summary |
|---|---|
| private int maxHeaderListSize | |
| priorKnowledge | back to summary |
|---|---|
| private boolean priorKnowledge | |
| pushEnabled | back to summary |
|---|---|
| private boolean pushEnabled | |
| streamsHighWaterMark | back to summary |
|---|---|
| private float streamsHighWaterMark | |
| threadPoolConfig | back to summary |
|---|---|
| private ThreadPoolConfig threadPoolConfig | |
| Http2ConfigurationBuilder | back to summary |
|---|---|
| private Http2ConfigurationBuilder() | |
| build | back to summary |
|---|---|
public Http2Configuration build()
| |
| cleanFrequencyCheck | back to summary |
|---|---|
public Http2Configuration.
| |
| cleanPercentage | back to summary |
|---|---|
public Http2Configuration.
| |
| disableCipherCheck | back to summary |
|---|---|
public Http2Configuration.
| |
| enablePush | back to summary |
|---|---|
public Http2Configuration.
| |
| executorService | back to summary |
|---|---|
| public Http2Configuration. Specifies a pre-existing | |
| initialWindowSize | back to summary |
|---|---|
public Http2Configuration.
| |
| maxConcurrentStreams | back to summary |
|---|---|
public Http2Configuration.
| |
| maxFramePayloadSize | back to summary |
|---|---|
public Http2Configuration.
| |
| maxHeaderListSize | back to summary |
|---|---|
public Http2Configuration.
| |
| priorKnowledge | back to summary |
|---|---|
public Http2Configuration.
| |
| streamsHighWaterMark | back to summary |
|---|---|
public Http2Configuration.
| |
| threadPoolConfig | back to summary |
|---|---|
| public Http2Configuration. Specifies a thread pool configuration that will be used to create a new | |