com.act365.net.tcp
Class TCPMSLTimer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.act365.net.tcp.TCPMSLTimer
All Implemented Interfaces:
java.lang.Runnable

public class TCPMSLTimer
extends java.lang.Thread

Implements a MSL (Maximum Segment Lifetime) timer used to close a TCP connection.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TCPMSLTimer(com.act365.net.tcp.TCPJSocketImpl socket, long msltimeout)
          Constructs the timer.
 
Method Summary
 void run()
          Starts the timer
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TCPMSLTimer

public TCPMSLTimer(com.act365.net.tcp.TCPJSocketImpl socket,
                   long msltimeout)
Constructs the timer.
Parameters:
socket - socket used to create the timer
msltimeout - MSL in thousandths of a second
Method Detail

run

public void run()
Starts the timer
Overrides:
run in class java.lang.Thread