jSyncManager

org.jSyncManager.API.Protocol
Class PacketTimer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.jSyncManager.API.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:
$Revision: 1.7 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: dingodave $ on $Date: 2003/06/18 05:32:16 $.
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:
Thread.start()

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.