|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.TimerScheduler
public class TimerScheduler
Represents an analogy of Timer which does not have the
disadvantage of Timer to always create its thread at
construction time. It also allows the currently scheduled
TimerTasks to be canceled while still being able to schedule new
TimerTasks later on.
| Constructor Summary | |
|---|---|
TimerScheduler()
|
|
| Method Summary | |
|---|---|
void |
cancel()
Discarding any currently scheduled TimerTasks. |
void |
schedule(TimerTask task,
long delay)
Schedules the specified TimerTask for execution after the
specified delay. |
void |
schedule(TimerTask task,
long delay,
long period)
Schedules the specified TimerTask for repeated fixed-delay
execution, beginning after the specified delay. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimerScheduler()
| Method Detail |
|---|
public void cancel()
TimerTasks.
public void schedule(TimerTask task,
long delay)
TimerTask for execution after the
specified delay.
task - the TimerTask to be executed after the specified
delaydelay - the delay in milliseconds before the specified
TimerTask is executed
public void schedule(TimerTask task,
long delay,
long period)
TimerTask for repeated fixed-delay
execution, beginning after the specified delay. Subsequent executions
take place at approximately regular intervals separated by the specified
period.
task - the TimerTask to be scheduleddelay - the delay in milliseconds before the specified
TimerTask is executedperiod - the time in milliseconds between successive executions of the
specified TimerTask
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||