com.ibm.manplato.Protocol
Class PacketTimer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.ibm.manplato.Protocol.PacketTimer
All Implemented Interfaces:
java.lang.Runnable

public class PacketTimer
extends java.lang.Thread

The PacketTimer class. This class provides timer services to the PADP layer, including the ACK packet timer, the inter-packet timer, and the tickle timer. Additional classes wishing to use this timer should implement the PacketTimerInterface.

Version:
$Rev$-$Date: 2001/03/15 16:55:32 $$State: Exp $
Author:
File Created By: Brad BARCLAY <bbarclay@ca.ibm.com>, Last Modified By: $Author: Yaztromo $
See Also:
PacketTimerInterface

Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
(package private) PacketTimer(long time, PacketTimerInterface watcher, boolean flag)
          Creates a new PacketTimer with the specified parameters.
 
Method Summary
 void run()
          Runs the packet 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PacketTimer

PacketTimer(long time,
            PacketTimerInterface watcher,
            boolean flag)
Creates a new PacketTimer with the specified parameters.
Parameters:
time - the time to wait before timeout.
watcher - the class to notify when this timer times out.
flag - denotes wether debugging text should be displayed from this timer object.
Method Detail

run

public void run()
Runs the packet timer. Note: this method should not be called by application developers. Please call start() instead, as this is a Thread subclass.
Overrides:
run in class java.lang.Thread
See Also:
java.lang.Thread.start()