|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimerService
Allows SIP servlet applications to set timers in order to receive notifications on timer expiration. Applications receive such notifications through an implementation of the TimerListener interface. Applications using timers must implement this interface and declare it as listener in the SIP deployment descriptor. SIP servlet containers are requried to make a TimerService instance available to applications through a ServletContext attribute with name javax.servlet.sip.TimerService. See Also:TimerListener, SipApplicationSession.getTimers()
| Method Summary | |
|---|---|
ServletTimer |
createTimer(SipApplicationSession appSession,
long delay,
boolean isPersistent,
Serializable info)
Creates a one-time ServletTimer and schedules it to expire after the specified delay. |
ServletTimer |
createTimer(SipApplicationSession appSession,
long delay,
long period,
boolean fixedDelay,
boolean isPersistent,
Serializable info)
Creates a repeating ServletTimer and schedules it to expire after the specified delay and then again at approximately regular intervals. |
| Method Detail |
|---|
ServletTimer createTimer(SipApplicationSession appSession,
long delay,
boolean isPersistent,
Serializable info)
ServletTimer createTimer(SipApplicationSession appSession,
long delay,
long period,
boolean fixedDelay,
boolean isPersistent,
Serializable info)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||