public final class TCPKeepAlive extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
idle
Idle time in seconds before TCP sends keep-alive packet.
|
int |
intvl
Wait time in seconds before retrying unacknowledged packet.
|
int |
probes
Maximum keep-alive packet attempts before invalidating the socket.
|
| Constructor and Description |
|---|
TCPKeepAlive()
Default constructor.
|
TCPKeepAlive(int idle,
int intvl,
int probes)
Enable TCP keep-alive when using native Netty epoll library.
|
TCPKeepAlive(TCPKeepAlive other)
Copy TCP keep-alive policy from another keep-alive policy.
|
public final int idle
Default: 59
public final int intvl
Default: 59
public final int probes
Default: 2
public TCPKeepAlive(int idle,
int intvl,
int probes)
idle - idle time in seconds before TCP sends keep-alive packetintvl - wait time in seconds before retrying unacknowledged packetprobes - maximum keep-alive packet attempts before invalidating the socketpublic TCPKeepAlive(TCPKeepAlive other)
public TCPKeepAlive()
Copyright © 2012–2024 Aerospike, Inc. All rights reserved.