it.unimo.dbgroup.momis.tools
Class TimeOutManager

java.lang.Object
  extended byjava.lang.Thread
      extended byit.unimo.dbgroup.momis.tools.TimeOutManager
All Implemented Interfaces:
java.lang.Runnable

public class TimeOutManager
extends java.lang.Thread

Manages the time-out for a set of TimeOutable objects.

Author:
Jonathan Gelati, Alberto Corni, Oct 2002

Field Summary
private  boolean _alive
           
private  boolean _debug
           
private  java.util.Vector _list
           
private  long _sleepTime
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimeOutManager()
           
TimeOutManager(long milliSeconds)
           
 
Method Summary
 void add(TimeOutable tot)
           
 void check()
           
 void remove(TimeOutable tot)
           
 void run()
           
 void setDebug(boolean debug)
           
 void setSleepTime(long milliSeconds)
           
 void stopManager()
           
 
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

_sleepTime

private long _sleepTime

_list

private java.util.Vector _list

_debug

private boolean _debug

_alive

private boolean _alive
Constructor Detail

TimeOutManager

public TimeOutManager()

TimeOutManager

public TimeOutManager(long milliSeconds)
Method Detail

setDebug

public void setDebug(boolean debug)

stopManager

public void stopManager()

setSleepTime

public void setSleepTime(long milliSeconds)

add

public void add(TimeOutable tot)

remove

public void remove(TimeOutable tot)

check

public void check()

run

public void run()


Universita' di Modena e Reggio Emilia