public class FailSafeTimer extends Object
Clients should not use this as a general purpose timing service. To do so could interfere with the running of the Cache.
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 2001-2018, Terracotta, Inc.