|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Timer
abbot.util.NamedTimer
Prevents misbehaving TimerTasks from canceling the timer thread by throwing exceptions and/or errors. Also extends the basic Timer to use a name for its thread. Naming the timer thread facilitates discerning different threads in a full stack dump.
Constructor Summary | |
NamedTimer(String name)
Creates a non-daemon named timer. |
|
NamedTimer(String name,
boolean isDaemon)
Creates a named timer, optionally running as a daemon thread. |
Method Summary | |
protected void |
handleException(Throwable thrown)
Handle an exception thrown by a TimerTask. |
void |
schedule(TimerTask task,
Date time)
|
void |
schedule(TimerTask task,
Date firstTime,
long period)
|
void |
schedule(TimerTask task,
long delay)
|
void |
schedule(TimerTask task,
long delay,
long period)
|
void |
scheduleAtFixedRate(TimerTask task,
Date firstTime,
long period)
|
void |
scheduleAtFixedRate(TimerTask task,
long delay,
long period)
|
Methods inherited from class java.util.Timer |
cancel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NamedTimer(String name)
public NamedTimer(String name, boolean isDaemon)
Method Detail |
protected void handleException(Throwable thrown)
public void schedule(TimerTask task, Date time)
public void schedule(TimerTask task, Date firstTime, long period)
public void schedule(TimerTask task, long delay)
public void schedule(TimerTask task, long delay, long period)
public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
public void scheduleAtFixedRate(TimerTask task, long delay, long period)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |