public class NamedTimer extends Timer
Constructor and Description |
---|
NamedTimer(String name)
Creates a non-daemon named timer.
|
NamedTimer(String name,
boolean isDaemon)
Creates a named timer, optionally running as a daemon thread.
|
Modifier and Type | Method and Description |
---|---|
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) |
public NamedTimer(String name)
public NamedTimer(String name, boolean isDaemon)
protected void handleException(Throwable thrown)
public void schedule(TimerTask task, long delay, long period)
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
Abbot is hosted on