Module io.helidon.http.http2
Package io.helidon.http.http2
Class ConnectionFlowControl.ConnectionFlowControlBuilder
java.lang.Object
io.helidon.http.http2.ConnectionFlowControl.ConnectionFlowControlBuilder
- All Implemented Interfaces:
Builder<ConnectionFlowControl.ConnectionFlowControlBuilder,
,ConnectionFlowControl> Supplier<ConnectionFlowControl>
- Enclosing class:
ConnectionFlowControl
public static class ConnectionFlowControl.ConnectionFlowControlBuilder
extends Object
implements Builder<ConnectionFlowControl.ConnectionFlowControlBuilder,ConnectionFlowControl>
Connection flow control builder.
-
Method Summary
Modifier and TypeMethodDescriptionblockTimeout
(Duration timeout) Timeout for blocking between windows size check iterations.build()
Build the instance from this builder.initialWindowSize
(int initialWindowSize) Outbound flow control INITIAL_WINDOW_SIZE setting for new HTTP/2 connections.maxFrameSize
(int maxFrameSize) Initial MAX_FRAME_SIZE setting for new HTTP/2 connections.
-
Method Details
-
initialWindowSize
Outbound flow control INITIAL_WINDOW_SIZE setting for new HTTP/2 connections.- Parameters:
initialWindowSize
- units of octets- Returns:
- updated builder
-
maxFrameSize
Initial MAX_FRAME_SIZE setting for new HTTP/2 connections. Maximum size of data frames in bytes we are prepared to accept from the other size. Default value is 2^14(16_384).- Parameters:
maxFrameSize
- data frame size in bytes between 2^14(16_384) and 2^24-1(16_777_215)- Returns:
- updated client
-
blockTimeout
Timeout for blocking between windows size check iterations.- Parameters:
timeout
- duration- Returns:
- updated builder
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<ConnectionFlowControl.ConnectionFlowControlBuilder,
ConnectionFlowControl> - Returns:
- instance of the built type
-