com.ibm.net
Class SocketKeepAliveParameters
- java.lang.Object
-
- com.ibm.net.SocketKeepAliveParameters
-
public class SocketKeepAliveParameters extends java.lang.Object
Parameters object forSocketUtils.configureKeepAlive(java.net.Socket, com.ibm.net.SocketKeepAliveParameters)
. Support for these parameters varies by platform. Any parameter that is not configurable on a per-socket basis on the current operating system will be ignored.
-
-
Constructor Summary
Constructors Constructor and Description SocketKeepAliveParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description int
getIdleTime()
Gets the current setting for amount of idle time.int
getIntervalTime()
Gets the current setting for the interval time.int
getProbeCount()
Gets the current setting for the maximum number of keepalive probes to send.void
setIdleTime(int secs)
Sets the amount of idle time on the connection until a keepalive probe is sent.void
setIntervalTime(int secs)
Sets the time between keepalive probes.void
setProbeCount(int count)
Sets the maximum number of keepalive probes to send.
-
-
-
Method Detail
-
getIdleTime
public int getIdleTime()
Gets the current setting for amount of idle time.- Returns:
- The amount of idle time, in seconds, on a connection until a keepalive probe is sent.
- See Also:
setIdleTime(int)
-
getIntervalTime
public int getIntervalTime()
Gets the current setting for the interval time.- Returns:
- The interval time, in seconds.
- See Also:
setIntervalTime(int)
-
getProbeCount
public int getProbeCount()
Gets the current setting for the maximum number of keepalive probes to send.- Returns:
- The maximum number of keepalive probes to send.
- See Also:
setProbeCount(int)
-
setIdleTime
public void setIdleTime(int secs)
Sets the amount of idle time on the connection until a keepalive probe is sent.- Parameters:
secs
- The number of idle seconds- See Also:
getIdleTime()
-
setIntervalTime
public void setIntervalTime(int secs)
Sets the time between keepalive probes.- Parameters:
secs
- The interval time, in seconds.- See Also:
getIntervalTime()
-
setProbeCount
public void setProbeCount(int count)
Sets the maximum number of keepalive probes to send.- Parameters:
count
- The number maximum number of keepalive probes to send.- See Also:
getProbeCount()
-
-