- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ConnectionConfig.BuilderBase.ConnectionConfigImpl
Deprecated.
Configuration of a server connection (for each connection created by clients).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Deprecated.Fluent API builder forConnectionConfig
.static class
ConnectionConfig.BuilderBase<BUILDER extends ConnectionConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConnectionConfig> Deprecated.Fluent API builder base forConnectionConfig
. -
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. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionConfig.Builder
builder()
Deprecated.Create a new fluent API builder to customize configuration.static ConnectionConfig.Builder
builder
(ConnectionConfig instance) Deprecated.Create a new fluent API builder from an existing instance.Deprecated, for removal: This API element is subject to removal in a future version.Connect timeout.static ConnectionConfig
create()
Deprecated.Create a new instance with default values.static ConnectionConfig
Deprecated.Create a new instance from configuration.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Configure socket keep alive.Deprecated, for removal: This API element is subject to removal in a future version.Read timeout.int
Deprecated, for removal: This API element is subject to removal in a future version.Socket receive buffer size.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Socket reuse address.int
Deprecated, for removal: This API element is subject to removal in a future version.Socket send buffer size.Map
<SocketOption<?>, Object> Deprecated, for removal: This API element is subject to removal in a future version.Set an arbitrary socket option.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Disable Nagle's algorithm by setting TCP_NODELAY to true.
-
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:
-
-
Method Details
-
builder
Deprecated.Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Deprecated.Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance with default values.- Returns:
- a new instance
-
readTimeout
Duration readTimeout()Deprecated, for removal: This API element is subject to removal in a future version.Read timeout. Default is "PT30S"- Returns:
- read timeout
-
connectTimeout
Duration connectTimeout()Deprecated, for removal: This API element is subject to removal in a future version.Connect timeout. Default is "PT10S".- Returns:
- connect timeout
-
sendBufferSize
int sendBufferSize()Deprecated, for removal: This API element is subject to removal in a future version.Socket send buffer size. Default is 32768.- Returns:
- buffer size, in bytes
- See Also:
-
receiveBufferSize
int receiveBufferSize()Deprecated, for removal: This API element is subject to removal in a future version.Socket receive buffer size. Default is 32768.- Returns:
- buffer size, in bytes
- See Also:
-
keepAlive
boolean keepAlive()Deprecated, for removal: This API element is subject to removal in a future version.Configure socket keep alive. Default istrue
.- Returns:
- keep alive
- See Also:
-
reuseAddress
boolean reuseAddress()Deprecated, for removal: This API element is subject to removal in a future version.Socket reuse address. Default istrue
.- Returns:
- whether to reuse address
- See Also:
-
tcpNoDelay
boolean tcpNoDelay()Deprecated, for removal: This API element is subject to removal in a future version.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:
- whether to use TCP_NODELAY, defaults to
false
- See Also:
-
socketOptions
Map<SocketOption<?>,Object> socketOptions()Deprecated, for removal: This API element is subject to removal in a future version.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.- Returns:
- socket options
- See Also:
-
SocketOptionsBlueprint
instead