public static class SocketOptions.TcpUserTimeoutOptions.Builder extends Object
SocketOptions.TcpUserTimeoutOptions
.Modifier and Type | Method and Description |
---|---|
SocketOptions.TcpUserTimeoutOptions |
build()
Create a new instance of
SocketOptions.TcpUserTimeoutOptions |
SocketOptions.TcpUserTimeoutOptions.Builder |
disable()
Disable TCP User Timeout.
|
SocketOptions.TcpUserTimeoutOptions.Builder |
enable()
Enable TCP User Timeout.
|
SocketOptions.TcpUserTimeoutOptions.Builder |
enable(boolean enabled)
Enable or disable TCP User Timeout.
|
SocketOptions.TcpUserTimeoutOptions.Builder |
tcpUserTimeout(Duration tcpUserTimeout)
The TCP User Timeout.
|
public SocketOptions.TcpUserTimeoutOptions.Builder enable()
SocketOptions.DEFAULT_TCP_USER_TIMEOUT_ENABLED
.this
public SocketOptions.TcpUserTimeoutOptions.Builder disable()
SocketOptions.DEFAULT_TCP_USER_TIMEOUT_ENABLED
.this
public SocketOptions.TcpUserTimeoutOptions.Builder enable(boolean enabled)
SocketOptions.DEFAULT_TCP_USER_TIMEOUT_ENABLED
.enabled
- whether to enable TCP User Timeout.this
public SocketOptions.TcpUserTimeoutOptions.Builder tcpUserTimeout(Duration tcpUserTimeout)
7875 second
. See also SocketOptions.TcpUserTimeoutOptions.DEFAULT_TCP_USER_TIMEOUT
.
The time granularity of is seconds.
tcpUserTimeout
- connection interval time, must be greater 0this
public SocketOptions.TcpUserTimeoutOptions build()
SocketOptions.TcpUserTimeoutOptions
SocketOptions.TcpUserTimeoutOptions
Copyright © 2025 lettuce.io. All rights reserved.