public class FailSafeTimer extends Object
Constructor and Description |
---|
FailSafeTimer(String name)
Constructor accepting a name for the timer.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
If the runtime environment restricts thread creation, this method does
nothing.
|
int |
purge()
If the runtime environment restricts thread creation, this method does
nothing.
|
void |
schedule(TimerTask task,
Date time)
If the runtime environment restricts thread creation, the task is run
inline for only one time.
|
void |
schedule(TimerTask task,
Date firstTime,
long period)
If the runtime environment restricts thread creation, the task is run
inline for only one time.
|
void |
schedule(TimerTask task,
long delay)
If the runtime environment restricts thread creation, the task is run
inline for only one time.
|
void |
schedule(TimerTask task,
long delay,
long period)
If the runtime environment restricts thread creation, the task is run
inline for only one time.
|
void |
scheduleAtFixedRate(TimerTask task,
Date firstTime,
long period)
If the runtime environment restricts thread creation, the task is run
inline for only one time.
|
void |
scheduleAtFixedRate(TimerTask task,
long delay,
long period)
If the runtime environment restricts thread creation, the task is run
inline for only one time.
|
public FailSafeTimer(String name)
name
- public void cancel()
Timer.cancel()
public int purge()
Timer.purge()
public void schedule(TimerTask task, Date firstTime, long period)
public void schedule(TimerTask task, Date time)
public void schedule(TimerTask task, long delay, long period)
public void schedule(TimerTask task, long delay)
public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
public void scheduleAtFixedRate(TimerTask task, long delay, long period)
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.