|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Timer
gov.nist.javax.sip.stack.timers.DefaultSipTimer
public class DefaultSipTimer
Default SIP Timer implementation based on java.util.Timer
| Constructor Summary | |
|---|---|
DefaultSipTimer()
|
|
| Method Summary | |
|---|---|
boolean |
cancel(SIPStackTimerTask task)
cancel a previously scheduled task |
boolean |
isStarted()
Check if the timer is started or stopped |
boolean |
schedule(SIPStackTimerTask task,
long delay)
Schedule a new SIPStackTimerTask after the specified delay |
boolean |
scheduleWithFixedDelay(SIPStackTimerTask task,
long delay,
long period)
Schedule a new SIPStackTimerTask after the specified delay |
void |
start(SipStackImpl sipStack,
Properties configurationProperties)
Start the SIP Timer, called when the stack is created. |
void |
stop()
Stop the Timer (called when the stack is stop or reinitialized) |
| Methods inherited from class java.util.Timer |
|---|
cancel, purge, schedule, schedule, schedule, schedule, scheduleAtFixedRate, scheduleAtFixedRate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSipTimer()
| Method Detail |
|---|
public boolean schedule(SIPStackTimerTask task,
long delay)
SipTimer
schedule in interface SipTimertask - the task to scheduledelay - the delay in milliseconds to schedule the task
public boolean scheduleWithFixedDelay(SIPStackTimerTask task,
long delay,
long period)
SipTimer
scheduleWithFixedDelay in interface SipTimertask - the task to scheduledelay - the delay in milliseconds to schedule the taskperiod - the period to run the task after it has been first scheduled
public boolean cancel(SIPStackTimerTask task)
SipTimer
cancel in interface SipTimertask - task to cancel
public void start(SipStackImpl sipStack,
Properties configurationProperties)
SipTimer
start in interface SipTimersipStack - TODOconfigurationProperties - the stack propertiespublic void stop()
SipTimer
stop in interface SipTimerpublic boolean isStarted()
SipTimer
isStarted in interface SipTimer
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||