Purple Code

com.purpletech.util
Class Alarm

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.purpletech.util.Alarm
All Implemented Interfaces:
java.lang.Runnable

public class Alarm
extends java.lang.Thread

sleeps a given amount of time, then interrupted the target thread


Field Summary
 boolean stop
          set this to stop it
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Alarm(java.lang.Thread thread, long sleep)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
 

Field Detail

stop

public boolean stop
set this to stop it

Constructor Detail

Alarm

public Alarm(java.lang.Thread thread,
             long sleep)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

Documentation generated March 5 2003