Package com.aerospike.client.policy
Class TCPKeepAlive
java.lang.Object
com.aerospike.client.policy.TCPKeepAlive
TCP keep-alive policy. This configuration only referenced when using native Netty epoll library.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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. -
Method Summary
-
Field Details
-
idle
public final int idleIdle time in seconds before TCP sends keep-alive packet.Default: 59
-
intvl
public final int intvlWait time in seconds before retrying unacknowledged packet.Default: 59
-
probes
public final int probesMaximum keep-alive packet attempts before invalidating the socket.Default: 2
-
-
Constructor Details
-
TCPKeepAlive
public TCPKeepAlive(int idle, int intvl, int probes) Enable TCP keep-alive when using native Netty epoll library.- Parameters:
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 socket
-
TCPKeepAlive
Copy TCP keep-alive policy from another keep-alive policy. -
TCPKeepAlive
public TCPKeepAlive()Default constructor.
-