Clients should not use this as a general purpose timing service. To do so could interfere with the running of the Cache.
| Modifier and Type | Field and Description |
|---|---|
| private final Timer | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
If the runtime environment restricts thread creation, the task is run inline for only one time. |
| public void | scheduleAtFixedRate(TimerTask task, long delay, long period)
If the runtime environment restricts thread creation, the task is run inline for only one time. |
| timer | back to summary |
|---|---|
| private final Timer timer | |
| timerThreadRunning | back to summary |
|---|---|
| private final boolean timerThreadRunning | |
| FailSafeTimer | back to summary |
|---|---|
| public FailSafeTimer(String name) Constructor accepting a name for the timer. The scheduling thread is created as a daemon | |
| cancel | back to summary |
|---|---|
| public void cancel() If the runtime environment restricts thread creation, this method does nothing.
| |
| purge | back to summary |
|---|---|
| public int purge() If the runtime environment restricts thread creation, this method does nothing.
| |
| schedule | back to summary |
|---|---|
| public void schedule(TimerTask task, Date firstTime, long period) If the runtime environment restricts thread creation, the task is run inline for only one time. No further repeated execution happens for the task | |
| schedule | back to summary |
|---|---|
| public void schedule(TimerTask task, Date time) If the runtime environment restricts thread creation, the task is run inline for only one time. No further repeated execution happens for the task | |
| schedule | back to summary |
|---|---|
| public void schedule(TimerTask task, long delay, long period) If the runtime environment restricts thread creation, the task is run inline for only one time. No further repeated execution happens for the task | |
| schedule | back to summary |
|---|---|
| public void schedule(TimerTask task, long delay) If the runtime environment restricts thread creation, the task is run inline for only one time. No further repeated execution happens for the task | |
| scheduleAtFixedRate | back to summary |
|---|---|
| public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period) If the runtime environment restricts thread creation, the task is run inline for only one time. No further repeated execution happens for the task | |
| scheduleAtFixedRate | back to summary |
|---|---|
| public void scheduleAtFixedRate(TimerTask task, long delay, long period) If the runtime environment restricts thread creation, the task is run inline for only one time. No further repeated execution happens for the task | |