Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.act365.net.tcp
Class TCPMSLTimer  view TCPMSLTimer download TCPMSLTimer.java

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.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.


Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  long msltimeout
           
(package private)  TCPJSocketImpl socket
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TCPMSLTimer(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, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

socket

TCPJSocketImpl socket

msltimeout

long msltimeout
Constructor Detail

TCPMSLTimer

public TCPMSLTimer(TCPJSocketImpl socket,
                   long msltimeout)
Constructs the timer.

Method Detail

run

public void run()
Starts the timer