
public class FaultTolerantTimer extends Timer
Timer, using the
FaultTolerantScheduler.
There is no guarantee that fail over recover works correctly with not serializable TimerTasks| Constructor and Description |
|---|
FaultTolerantTimer(String name,
MobicentsCluster cluster,
byte priority,
TransactionManager txManager) |
FaultTolerantTimer(String name,
MobicentsCluster cluster,
byte priority,
TransactionManager txManager,
int purgePeriod) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
FaultTolerantScheduler |
getScheduler() |
int |
purge() |
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 FaultTolerantTimer(String name, MobicentsCluster cluster, byte priority, TransactionManager txManager)
name - cluster - priority - txManager - public FaultTolerantTimer(String name, MobicentsCluster cluster, byte priority, TransactionManager txManager, int purgePeriod)
name - cluster - priority - txManager - purgePeriod - public FaultTolerantScheduler getScheduler()
public void schedule(TimerTask task, long delay, long period)
public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
scheduleAtFixedRate in class Timerpublic void scheduleAtFixedRate(TimerTask task, long delay, long period)
scheduleAtFixedRate in class TimerCopyright © 2016. All Rights Reserved.