com.ibm.net
Class SocketKeepAliveParameters
- java.lang.Object
com.ibm.net.SocketKeepAliveParameters
- public class SocketKeepAliveParameters
- extends java.lang.Object
SocketUtils.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
Constructor and Description |
---|
SocketKeepAliveParameters()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getIdleTime()
Gets the current setting for amount of idle time.
|
|
getIntervalTime()
Gets the current setting for the interval time.
|
|
getProbeCount()
Gets the current setting for the maximum number of keepalive probes to
send.
|
|
setIdleTime(int secs)
Sets the amount of idle time on the connection until
a keepalive probe is sent.
|
|
setIntervalTime(int secs)
Sets the time between keepalive probes.
|
|
setProbeCount(int count)
Sets the maximum number of keepalive probes to send.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
SocketKeepAliveParameters
- public SocketKeepAliveParameters( )
Method Detail
getProbeCount
- public int getProbeCount()
Gets the current setting for the maximum number of keepalive probes to
send.
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:
getIntervalTime
- public int getIntervalTime()
Gets the current setting for the interval time.
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:
setIdleTime
- public void setIdleTime(int secs)
Sets the amount of idle time on the connection until
a keepalive probe is sent.
setIntervalTime
- public void setIntervalTime(int secs)
Sets the time between keepalive probes.