java.lang.Object
org.mobicents.slee.runtime.facilities.TimerFacilityImpl
- public class TimerFacilityImpl
- extends java.lang.Object
Implementation of the SLEE timer facility.
timer is the timer object currently being examined.
timer.scheduleTime is time that the Timer Event is scheduled to fire.
timer.timeout is timeout for this timer (from TimerOptions).
timer.numRepetitions is the total repetitions for this timer, 0 if infinite,
1 if non-periodic.
timer.remainingRepetiton is the remaining repetition count, initially Long.MAX_VALUE
for infinite periodic timers, timer.numRepetitions
otherwise.
timer.period is the timer period (Long.MAX_VALUE if non-periodic).
timer.missed is the counter of undelivered late events.
|
Method Summary |
void |
cancelTimer(TimerID timerID)
|
long |
getDefaultTimeout()
|
long |
getResolution()
|
int |
getTimerResolution()
Get the timer resolution. |
TimerID |
setTimer(ActivityContextInterface aci,
Address address,
long startTime,
long period,
int numRepetitions,
TimerOptions timerOptions)
|
TimerID |
setTimer(ActivityContextInterface aci,
Address address,
long startTime,
TimerOptions timerOptions)
|
void |
setTimerResolution(int resolution)
Set the timer resolution. |
void |
start()
Start the timer. |
void |
stop()
stop the timer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TIMEOUT
private static final int DEFAULT_TIMEOUT
- See Also:
- Constant Field Values
JNDI_NAME
public static final java.lang.String JNDI_NAME
- See Also:
- Constant Field Values
FQN_PREFIX
private static final java.lang.String FQN_PREFIX
- See Also:
- Constant Field Values
FQN_TIMERS_PREFIX
private static final java.lang.String FQN_TIMERS_PREFIX
- See Also:
- Constant Field Values
tcache
private static java.lang.String tcache
timerResolution
private int timerResolution
timer
private java.util.Timer timer
serviceContainer
private org.mobicents.slee.container.SleeContainer serviceContainer
timerEventID
protected org.mobicents.slee.container.management.EventTypeIDImpl timerEventID
timerEventKey
protected org.mobicents.slee.container.management.ComponentKey timerEventKey
logger
private static org.jboss.logging.Logger logger
TimerFacilityImpl
public TimerFacilityImpl(org.mobicents.slee.container.SleeContainer serviceContainer)
setTimer
public TimerID setTimer(ActivityContextInterface aci,
Address address,
long startTime,
TimerOptions timerOptions)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException,
FacilityException
setTimer
public TimerID setTimer(ActivityContextInterface aci,
Address address,
long startTime,
long period,
int numRepetitions,
TimerOptions timerOptions)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException,
TransactionRolledbackLocalException,
FacilityException
cancelTimer
public void cancelTimer(TimerID timerID)
throws java.lang.NullPointerException,
TransactionRolledbackLocalException,
FacilityException
getResolution
public long getResolution()
throws FacilityException
getDefaultTimeout
public long getDefaultTimeout()
throws FacilityException
stop
public void stop()
- stop the timer. This is for JMX management interfaces
start
public void start()
- Start the timer. This is for jmx management interfaces.
setTimerResolution
public void setTimerResolution(int resolution)
- Set the timer resolution. This is for jmx interfaces.
getTimerResolution
public int getTimerResolution()
- Get the timer resolution. This is for jmx interfaces.