public interface ISessionTimer
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported()
Tells if the implementation supports the session timer.
|
ITimerTask |
scheduleEvent(Object event,
long delay)
Schedules the specified timer event to be triggered in the session's
handler after the specified delay.
|
ITimerTask |
scheduleEvent(Object event,
long delay,
long period)
Schedules the specified timer event for repeated triggering in the
session's handler with the specified initial delay.
|
ITimerTask |
scheduleTask(Runnable task,
long delay,
boolean inHandler)
Schedules the specified task for execution after the specified delay.
|
ITimerTask |
scheduleTask(Runnable task,
long delay,
long period,
boolean inHandler)
Schedules the specified task for repeated execution with the specified
initial delay.
|
boolean isSupported()
true
if the session timer is supported.ITimerTask scheduleTask(Runnable task, long delay, boolean inHandler)
task
- the task to be scheduleddelay
- the delay in millisecondsinHandler
- if true
then the task will be passed to the session's
handler, otherwise the task will be executed in the internal timer's
thread.ITimerTask scheduleTask(Runnable task, long delay, long period, boolean inHandler)
task
- the task to be scheduleddelay
- the delay in millisecondsperiod
- time in milliseconds between successive task executionsinHandler
- if true
then the task will be passed to the session's
handler, otherwise the task will be executed in the timer's
thread.ITimerTask scheduleEvent(Object event, long delay)
event
- the event to be scheduleddelay
- the delay in millisecondsITimerTask scheduleEvent(Object event, long delay, long period)
event
- the event to be scheduleddelay
- the delay in millisecondsperiod
- time in milliseconds between successive timer event triggeringCopyright © 2017–2022 SNF4J.ORG. All rights reserved.