com.ibm.net

Class SocketKeepAliveParameters

  • java.lang.Object
    • com.ibm.net.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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SocketKeepAliveParameters

        public SocketKeepAliveParameters()
    • 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()