public interface SipTimer
Modifier and Type | Method and Description |
---|---|
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)
|
boolean schedule(SIPStackTimerTask task, long delay)
task
- the task to scheduledelay
- the delay in milliseconds to schedule the taskboolean scheduleWithFixedDelay(SIPStackTimerTask task, long delay, long period)
task
- the task to scheduledelay
- the delay in milliseconds to schedule the taskperiod
- the period to run the task after it has been first scheduledvoid stop()
boolean cancel(SIPStackTimerTask task)
task
- task to cancelvoid start(SipStackImpl sipStack, Properties configurationProperties)
sipStack
- TODOconfigurationProperties
- the stack propertiesboolean isStarted()
Copyright © 2018. All Rights Reserved.