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 String
Deprecated, for removal: This API element is subject to removal in a future version.Default connect timeout duration.static final String
Deprecated, for removal: This API element is subject to removal in a future version.Default read timeout duration.static final int
Deprecated, for removal: This API element is subject to removal in a future version.Default SO buffer size. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConnectionConfigImpl
(ConnectionConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionConnect timeout.boolean
int
hashCode()
boolean
Configure socket keep alive.Read timeout.int
Socket receive buffer size.boolean
Socket reuse address.int
Socket send buffer size.Map
<SocketOption<?>, Object> Set an arbitrary socket option.boolean
Disable 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:ConnectionConfig
Read timeout. Default is "PT30S"- Specified by:
readTimeout
in interfaceConnectionConfig
- Returns:
- read timeout
-
connectTimeout
Description copied from interface:ConnectionConfig
Connect timeout. Default is "PT10S".- Specified by:
connectTimeout
in interfaceConnectionConfig
- Returns:
- connect timeout
-
sendBufferSize
public int sendBufferSize()Description copied from interface:ConnectionConfig
Socket send buffer size. Default is 32768.- Specified by:
sendBufferSize
in interfaceConnectionConfig
- Returns:
- buffer size, in bytes
- See Also:
-
receiveBufferSize
public int receiveBufferSize()Description copied from interface:ConnectionConfig
Socket receive buffer size. Default is 32768.- Specified by:
receiveBufferSize
in interfaceConnectionConfig
- Returns:
- buffer size, in bytes
- See Also:
-
keepAlive
public boolean keepAlive()Description copied from interface:ConnectionConfig
Configure socket keep alive. Default istrue
.- Specified by:
keepAlive
in interfaceConnectionConfig
- Returns:
- keep alive
- See Also:
-
reuseAddress
public boolean reuseAddress()Description copied from interface:ConnectionConfig
Socket reuse address. Default istrue
.- Specified by:
reuseAddress
in interfaceConnectionConfig
- Returns:
- whether to reuse address
- See Also:
-
tcpNoDelay
public boolean tcpNoDelay()Description copied from interface:ConnectionConfig
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
.- Specified by:
tcpNoDelay
in interfaceConnectionConfig
- Returns:
- whether to use TCP_NODELAY, defaults to
false
- See Also:
-
socketOptions
Description copied from interface:ConnectionConfig
Set 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:
socketOptions
in interfaceConnectionConfig
- Returns:
- socket options
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-