org.mobicents.timers.timer
Class FaultTolerantTimer
java.lang.Object
java.util.Timer
org.mobicents.timers.timer.FaultTolerantTimer
public class FaultTolerantTimer
- extends java.util.Timer
A fault tolerant implementation of a Timer, using the
FaultTolerantScheduler.
There is no guarantee that fail over recover works correctly with not serializable TimerTasks
- Author:
- martins
|
Constructor Summary |
FaultTolerantTimer(java.lang.String name,
org.mobicents.cluster.MobicentsCluster cluster,
byte priority,
javax.transaction.TransactionManager txManager)
|
|
Method Summary |
void |
cancel()
|
FaultTolerantScheduler |
getScheduler()
|
int |
purge()
|
void |
schedule(java.util.TimerTask task,
java.util.Date time)
|
void |
schedule(java.util.TimerTask task,
java.util.Date firstTime,
long period)
|
void |
schedule(java.util.TimerTask task,
long delay)
|
void |
schedule(java.util.TimerTask task,
long delay,
long period)
|
void |
scheduleAtFixedRate(java.util.TimerTask task,
java.util.Date firstTime,
long period)
|
void |
scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FaultTolerantTimer
public FaultTolerantTimer(java.lang.String name,
org.mobicents.cluster.MobicentsCluster cluster,
byte priority,
javax.transaction.TransactionManager txManager)
- Parameters:
cacheData - txManager -
getScheduler
public FaultTolerantScheduler getScheduler()
- Returns:
- the scheduler
cancel
public void cancel()
- Overrides:
cancel in class java.util.Timer
purge
public int purge()
- Overrides:
purge in class java.util.Timer
schedule
public void schedule(java.util.TimerTask task,
java.util.Date firstTime,
long period)
- Overrides:
schedule in class java.util.Timer
schedule
public void schedule(java.util.TimerTask task,
java.util.Date time)
- Overrides:
schedule in class java.util.Timer
schedule
public void schedule(java.util.TimerTask task,
long delay)
- Overrides:
schedule in class java.util.Timer
schedule
public void schedule(java.util.TimerTask task,
long delay,
long period)
- Overrides:
schedule in class java.util.Timer
scheduleAtFixedRate
public void scheduleAtFixedRate(java.util.TimerTask task,
java.util.Date firstTime,
long period)
- Overrides:
scheduleAtFixedRate in class java.util.Timer
scheduleAtFixedRate
public void scheduleAtFixedRate(java.util.TimerTask task,
long delay,
long period)
- Overrides:
scheduleAtFixedRate in class java.util.Timer
Copyright © 2009. All Rights Reserved.