| java.lang.Object java.util.Timer abbot.util.NamedTimer
NamedTimer | public class NamedTimer extends Timer (Code) | | 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 | |
public | NamedTimer(String name) Creates a non-daemon named timer. | public | 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. | 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) |
NamedTimer | public NamedTimer(String name)(Code) | | Creates a non-daemon named timer.
|
NamedTimer | public NamedTimer(String name, boolean isDaemon)(Code) | | Creates a named timer, optionally running as a daemon thread.
|
handleException | protected void handleException(Throwable thrown)(Code) | | Handle an exception thrown by a TimerTask. The default does
nothing.
|
schedule | public void schedule(TimerTask task, long delay, long period)(Code) | | |
scheduleAtFixedRate | public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)(Code) | | |
scheduleAtFixedRate | public void scheduleAtFixedRate(TimerTask task, long delay, long period)(Code) | | |
Methods inherited from java.util.Timer | public void cancel()(Code)(Java Doc) public int purge()(Code)(Java Doc) public void schedule(TimerTask task, long delay)(Code)(Java Doc) public void schedule(TimerTask task, Date time)(Code)(Java Doc) public void schedule(TimerTask task, long delay, long period)(Code)(Java Doc) public void schedule(TimerTask task, Date firstTime, long period)(Code)(Java Doc) public void scheduleAtFixedRate(TimerTask task, long delay, long period)(Code)(Java Doc) public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)(Code)(Java Doc)
|
|
|