Module io.helidon.webserver
Package io.helidon.webserver
Class ConnectionConfig.BuilderBase<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ConnectionConfig>  
java.lang.Object
io.helidon.webserver.ConnectionConfig.BuilderBase<BUILDER,PROTOTYPE> 
- Type Parameters:
- BUILDER- type of the builder extending this abstract builder
- PROTOTYPE- type of the prototype interface that would be built by- Prototype.Builder.buildPrototype()
- All Implemented Interfaces:
- Prototype.Builder<BUILDER,,- PROTOTYPE> - ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,- PROTOTYPE> - ConfigBuilderSupport.ConfiguredBuilder<BUILDER,- PROTOTYPE> 
- Direct Known Subclasses:
- ConnectionConfig.Builder
- Enclosing interface:
- ConnectionConfig
public abstract static class ConnectionConfig.BuilderBase<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ConnectionConfig>  
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE> 
Fluent API builder base for 
ConnectionConfig.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddSocketOptions(Map<SocketOption<?>, ?> socketOptions) Set an arbitrary socket option.config()If this instance was configured, this would be the config instance used.Deprecated.Update builder from configuration (node of this type).Connect timeout.connectTimeout(Duration connectTimeout) Connect timeout.from(ConnectionConfig prototype) Update this builder from an existing prototype instance.from(ConnectionConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanConfigure socket keep alive.keepAlive(boolean keepAlive) Configure socket keep alive.protected voidHandles providers and decorators.putSocketOption(SocketOption<?> key, Object socketOption) Set an arbitrary socket option.Read timeout.readTimeout(Duration readTimeout) Read timeout.intSocket receive buffer size.receiveBufferSize(int receiveBufferSize) Socket receive buffer size.booleanSocket reuse address.reuseAddress(boolean reuseAddress) Socket reuse address.intSocket send buffer size.sendBufferSize(int sendBufferSize) Socket send buffer size.Map<SocketOption<?>, Object> Set an arbitrary socket option.socketOptions(Map<SocketOption<?>, ?> socketOptions) Set an arbitrary socket option.booleanDisable Nagle's algorithm by setting TCP_NODELAY to true.tcpNoDelay(boolean tcpNoDelay) Disable Nagle's algorithm by setting TCP_NODELAY to true.toString()protected voidValidates required properties.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.BuilderbuildPrototype, self
- 
Constructor Details- 
BuilderBaseprotected BuilderBase()Protected to support extensibility.
 
- 
- 
Method Details- 
fromUpdate this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
- prototype- existing prototype to update this builder from
- Returns:
- updated builder instance
 
- 
fromUpdate this builder from an existing prototype builder instance.- Parameters:
- builder- existing builder prototype to update this builder from
- Returns:
- updated builder instance
 
- 
configDeprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
- configin interface- ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,- PROTOTYPE>, - PROTOTYPE extends ConnectionConfig> 
- Parameters:
- config- configuration instance used to obtain values to update this builder
- Returns:
- updated builder instance
 
- 
configUpdate builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
- configin interface- ConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,- PROTOTYPE>, - PROTOTYPE extends ConnectionConfig> 
- Parameters:
- config- configuration instance used to obtain values to update this builder
- Returns:
- updated builder instance
 
- 
readTimeoutRead timeout. Default is "PT30S"- Parameters:
- readTimeout- read timeout
- Returns:
- updated builder instance
- See Also:
 
- 
connectTimeoutConnect timeout. Default is "PT10S".- Parameters:
- connectTimeout- connect timeout
- Returns:
- updated builder instance
- See Also:
 
- 
sendBufferSizeSocket send buffer size. Default is 32768.- Parameters:
- sendBufferSize- buffer size, in bytes
- Returns:
- updated builder instance
- See Also:
 
- 
receiveBufferSizeSocket receive buffer size. Default is 32768.- Parameters:
- receiveBufferSize- buffer size, in bytes
- Returns:
- updated builder instance
- See Also:
 
- 
keepAliveConfigure socket keep alive. Default istrue.- Parameters:
- keepAlive- keep alive
- Returns:
- updated builder instance
- See Also:
 
- 
reuseAddressSocket reuse address. Default istrue.- Parameters:
- reuseAddress- whether to reuse address
- Returns:
- updated builder instance
- See Also:
 
- 
tcpNoDelayDisable Nagle's algorithm by setting TCP_NODELAY to true. This can result in better performance on Mac or newer linux kernels for some payload types. Default isfalse.- Parameters:
- tcpNoDelay- whether to use TCP_NODELAY, defaults to- false
- Returns:
- updated builder instance
- See Also:
 
- 
socketOptionsSet an arbitrary socket option. A mapping of a socket option to its value. Socket options may be system specific. Most commonly supported socket options are available as methods directly. This method replaces all values with the new ones.- Parameters:
- socketOptions- socket options
- Returns:
- updated builder instance
- See Also:
 
- 
addSocketOptionsSet an arbitrary socket option. A mapping of a socket option to its value. Socket options may be system specific. Most commonly supported socket options are available as methods directly. This method keeps existing values, then puts all new values into the map.- Parameters:
- socketOptions- socket options
- Returns:
- updated builder instance
- See Also:
 
- 
putSocketOptionSet an arbitrary socket option. A mapping of a socket option to its value. Socket options may be system specific. Most commonly supported socket options are available as methods directly. This method adds a new value to the map, or replaces it if the key already exists.- Parameters:
- key- key to add or replace
- socketOption- new value for the key
- Returns:
- updated builder instance
- See Also:
 
- 
readTimeoutRead timeout. Default is "PT30S"- Returns:
- the read timeout
 
- 
connectTimeoutConnect timeout. Default is "PT10S".- Returns:
- the connect timeout
 
- 
sendBufferSizepublic int sendBufferSize()Socket send buffer size. Default is 32768.- Returns:
- the send buffer size
- See Also:
 
- 
receiveBufferSizepublic int receiveBufferSize()Socket receive buffer size. Default is 32768.- Returns:
- the receive buffer size
- See Also:
 
- 
keepAlivepublic boolean keepAlive()Configure socket keep alive. Default istrue.- Returns:
- the keep alive
- See Also:
 
- 
reuseAddresspublic boolean reuseAddress()Socket reuse address. Default istrue.- Returns:
- the reuse address
- See Also:
 
- 
tcpNoDelaypublic boolean tcpNoDelay()Disable Nagle's algorithm by setting TCP_NODELAY to true. This can result in better performance on Mac or newer linux kernels for some payload types. Default isfalse.- Returns:
- the tcp no delay
- See Also:
 
- 
socketOptionsSet an arbitrary socket option. A mapping of a socket option to its value. Socket options may be system specific. Most commonly supported socket options are available as methods directly.- Returns:
- the socket options
- See Also:
 
- 
configIf this instance was configured, this would be the config instance used.- Returns:
- config node used to configure this builder, or empty if not configured
 
- 
toString
- 
preBuildPrototypeprotected void preBuildPrototype()Handles providers and decorators.
- 
validatePrototypeprotected void validatePrototype()Validates required properties.
 
- 
config(io.helidon.config.Config)