com.ibm.net

Class SocketKeepAliveParameters

  1. java.lang.Object
  2. extended bycom.ibm.net.SocketKeepAliveParameters

  1. public class SocketKeepAliveParameters
  2. extends java.lang.Object
Parameters object for 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
  1. int
getIdleTime()
Gets the current setting for amount of idle time.
  1. int
getIntervalTime()
Gets the current setting for the interval time.
  1. int
getProbeCount()
Gets the current setting for the maximum number of keepalive probes to send.
  1. void
setIdleTime(int secs)
Sets the amount of idle time on the connection until a keepalive probe is sent.
  1. void
setIntervalTime(int secs)
Sets the time between keepalive probes.
  1. void
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

  1. public SocketKeepAliveParameters( )

Method Detail

getProbeCount

  1. 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:

getIdleTime

  1. 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

  1. public int getIntervalTime()
Gets the current setting for the interval time.
Returns:
The interval time, in seconds.
See Also:

setProbeCount

  1. 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

  1. 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:

setIntervalTime

  1. public void setIntervalTime(int secs)
Sets the time between keepalive probes.
Parameters:
secs - The interval time, in seconds.
See Also: