|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Timer abbot.util.NamedTimer
public class 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, purge |
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)
schedule
in class Timer
public void schedule(TimerTask task, Date firstTime, long period)
schedule
in class Timer
public void schedule(TimerTask task, long delay)
schedule
in class Timer
public void schedule(TimerTask task, long delay, long period)
schedule
in class Timer
public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
scheduleAtFixedRate
in class Timer
public void scheduleAtFixedRate(TimerTask task, long delay, long period)
scheduleAtFixedRate
in class Timer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |