public class ScheduledExecutorSipTimer extends Object implements SipTimer
Modifier and Type | Field and Description |
---|---|
protected SipStackImpl |
sipStackImpl |
Constructor and Description |
---|
ScheduledExecutorSipTimer() |
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)
|
protected SipStackImpl sipStackImpl
public void stop()
SipTimer
public boolean schedule(SIPStackTimerTask task, long delay)
SipTimer
public boolean scheduleWithFixedDelay(SIPStackTimerTask task, long delay, long period)
SipTimer
scheduleWithFixedDelay
in interface SipTimer
task
- the task to scheduledelay
- the delay in milliseconds to schedule the taskperiod
- the period to run the task after it has been first scheduledpublic void start(SipStackImpl sipStack, Properties configurationProperties)
SipTimer
public boolean cancel(SIPStackTimerTask task)
SipTimer
Copyright © 2017. All Rights Reserved.