Module io.helidon.webserver
Package io.helidon.webserver
Class ConnectionConfig.BuilderBase.ConnectionConfigImpl
java.lang.Object
io.helidon.webserver.ConnectionConfig.BuilderBase.ConnectionConfigImpl
- All Implemented Interfaces:
Prototype.Api,ConnectionConfig
- Enclosing class:
ConnectionConfig.BuilderBase<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConnectionConfig>
protected static class ConnectionConfig.BuilderBase.ConnectionConfigImpl
extends Object
implements ConnectionConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.ConnectionConfig
ConnectionConfig.Builder, ConnectionConfig.BuilderBase<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConnectionConfig> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Default connect timeout duration.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Default read timeout duration.static final intDeprecated, for removal: This API element is subject to removal in a future version.Default SO buffer size. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionConfigImpl(ConnectionConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionConnect timeout.booleaninthashCode()booleanConfigure socket keep alive.Read timeout.intSocket receive buffer size.booleanSocket reuse address.intSocket send buffer size.Map<SocketOption<?>, Object> Set an arbitrary socket option.booleanDisable Nagle's algorithm by setting TCP_NODELAY to true.toString()
-
Field Details
-
DEFAULT_READ_TIMEOUT_DURATION
Deprecated, for removal: This API element is subject to removal in a future version.Default read timeout duration.- See Also:
-
DEFAULT_CONNECT_TIMEOUT_DURATION
Deprecated, for removal: This API element is subject to removal in a future version.Default connect timeout duration.- See Also:
-
DEFAULT_SO_BUFFER_SIZE
static final int DEFAULT_SO_BUFFER_SIZEDeprecated, for removal: This API element is subject to removal in a future version.Default SO buffer size.- See Also:
-
-
Constructor Details
-
ConnectionConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
readTimeout
Description copied from interface:ConnectionConfigRead timeout. Default is "PT30S"- Specified by:
readTimeoutin interfaceConnectionConfig- Returns:
- read timeout
-
connectTimeout
Description copied from interface:ConnectionConfigConnect timeout. Default is "PT10S".- Specified by:
connectTimeoutin interfaceConnectionConfig- Returns:
- connect timeout
-
sendBufferSize
public int sendBufferSize()Description copied from interface:ConnectionConfigSocket send buffer size. Default is 32768.- Specified by:
sendBufferSizein interfaceConnectionConfig- Returns:
- buffer size, in bytes
- See Also:
-
receiveBufferSize
public int receiveBufferSize()Description copied from interface:ConnectionConfigSocket receive buffer size. Default is 32768.- Specified by:
receiveBufferSizein interfaceConnectionConfig- Returns:
- buffer size, in bytes
- See Also:
-
keepAlive
public boolean keepAlive()Description copied from interface:ConnectionConfigConfigure socket keep alive. Default istrue.- Specified by:
keepAlivein interfaceConnectionConfig- Returns:
- keep alive
- See Also:
-
reuseAddress
public boolean reuseAddress()Description copied from interface:ConnectionConfigSocket reuse address. Default istrue.- Specified by:
reuseAddressin interfaceConnectionConfig- Returns:
- whether to reuse address
- See Also:
-
tcpNoDelay
public boolean tcpNoDelay()Description copied from interface:ConnectionConfigDisable 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.- Specified by:
tcpNoDelayin interfaceConnectionConfig- Returns:
- whether to use TCP_NODELAY, defaults to
false - See Also:
-
socketOptions
Description copied from interface:ConnectionConfigSet 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.- Specified by:
socketOptionsin interfaceConnectionConfig- Returns:
- socket options
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-