|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.core.timers.ServletTimerImpl
public class ServletTimerImpl
| Constructor Summary | |
|---|---|
ServletTimerImpl(java.io.Serializable info,
long delay,
boolean fixedDelay,
long period,
TimerListener listener,
MobicentsSipApplicationSession appSession)
Constructor for repeating times |
|
ServletTimerImpl(java.io.Serializable info,
long delay,
TimerListener listener,
MobicentsSipApplicationSession appSession)
Constructor for non-repeating timer. |
|
| Method Summary | |
|---|---|
void |
cancel()
|
void |
cancel(boolean mayInterruptIfRunning)
Cancel this timer, possibly by also interrupting the thread (from the thread pool) running the task. |
boolean |
canRun()
|
SipApplicationSession |
getApplicationSession()
|
long |
getDelay()
Getter for delay property. |
java.lang.String |
getId()
|
java.io.Serializable |
getInfo()
|
long |
getPeriod()
Getter for period property |
long |
getTimeRemaining()
|
void |
run()
Method that actually |
long |
scheduledExecutionTime()
|
void |
setFuture(java.util.concurrent.ScheduledFuture<?> f)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServletTimerImpl(java.io.Serializable info,
long delay,
TimerListener listener,
MobicentsSipApplicationSession appSession)
info - Information about the timerdelay - Delay until executionlistener - Listener that will get timeout events.
public ServletTimerImpl(java.io.Serializable info,
long delay,
boolean fixedDelay,
long period,
TimerListener listener,
MobicentsSipApplicationSession appSession)
info - Information about the timerdelay - Delay until first executionfixedDelay - Whether fixed delay mode should be usedperiod - Period between executionlistener - Listener that will get timeout events.| Method Detail |
|---|
public void cancel()
cancel in interface ServletTimerpublic void cancel(boolean mayInterruptIfRunning)
mayInterruptIfRunning - public long getDelay()
public long getPeriod()
public SipApplicationSession getApplicationSession()
getApplicationSession in interface ServletTimerpublic java.io.Serializable getInfo()
getInfo in interface ServletTimerpublic long scheduledExecutionTime()
scheduledExecutionTime in interface ServletTimerpublic void setFuture(java.util.concurrent.ScheduledFuture<?> f)
public boolean canRun()
public java.lang.String toString()
toString in class java.lang.Objectpublic void run()
run in interface java.lang.Runnablepublic java.lang.String getId()
getId in interface ServletTimerpublic long getTimeRemaining()
getTimeRemaining in interface ServletTimer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||