Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » util » [javadoc | source]
org.jboss.util
public class: TimerQueue [javadoc | source]
java.lang.Object
   org.jboss.util.WorkerQueue
      org.jboss.util.TimerQueue
This class runs in a single thread TimerTask s that have been scheduled.

A similar class is present in java.util package of jdk version >= 1.3; for compatibility with jdk 1.2 it is reimplemented here.

Nested Class Summary:
protected class  TimerQueue.TimerTaskLoop  Class that loops getting the next job to be executed and then executing it, in the timer task thread. 
Fields inherited from org.jboss.util.WorkerQueue:
m_queueThread
Constructor:
 public TimerQueue() 
 public TimerQueue(String threadName) 
    Creates a new timer queue with the specified thread name
Method from org.jboss.util.TimerQueue Summary:
clear,   createQueueLoop,   getJobImpl,   putJobImpl,   schedule,   schedule
Methods from org.jboss.util.WorkerQueue:
clear,   createQueueLoop,   getJob,   getJobImpl,   isInterrupted,   putJob,   putJobImpl,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.util.TimerQueue Detail:
 protected  void clear() 
 protected Runnable createQueueLoop() 
 protected Executable getJobImpl() throws InterruptedException 
 protected  void putJobImpl(Executable task) 
 public  void schedule(TimerTask t) 
    Schedules the given TimerTask for immediate execution.
 public  void schedule(TimerTask t,
    long delay) 
    Schedule the given TimerTask to be executed after delay milliseconds.