${header}

meteor.util
Class TimeOut

java.lang.Object
  extended byjava.lang.Thread
      extended bymeteor.util.TimeOut
All Implemented Interfaces:
java.lang.Runnable

public class TimeOut
extends java.lang.Thread

TimeOut is used to trigger a timeout event after a determined period of time

Author:
Vincent Matossian

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimeOut(TimedClass tc, long startTime, long to)
           
 
Method Summary
 void run()
          Run until timeout threshold is reached If timeout expires notify registered class
 void stopthread()
          Stop the thread
 
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
 

Constructor Detail

TimeOut

public TimeOut(TimedClass tc,
               long startTime,
               long to)
Method Detail

run

public void run()
Run until timeout threshold is reached If timeout expires notify registered class


stopthread

public void stopthread()
Stop the thread


${header}