public class UnsupportedSessionTimer extends Object implements ISessionTimer
| Modifier and Type | Field and Description |
|---|---|
static ISessionTimer |
INSTANCE
A constant holding the instance of the unsupported session timer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSupported()
Tells if the implementation supports the session timer.
|
ITimerTask |
scheduleEvent(Object event,
long delay)
Always throws the UnsupportedOperationException.
|
ITimerTask |
scheduleEvent(Object event,
long delay,
long period)
Always throws the UnsupportedOperationException.
|
ITimerTask |
scheduleTask(Runnable task,
long delay,
boolean inHandler)
Always throws the UnsupportedOperationException.
|
ITimerTask |
scheduleTask(Runnable task,
long delay,
long period,
boolean inHandler)
Always throws the UnsupportedOperationException.
|
public static final ISessionTimer INSTANCE
public boolean isSupported()
ISessionTimerisSupported in interface ISessionTimerfalsepublic ITimerTask scheduleTask(Runnable task, long delay, boolean inHandler)
scheduleTask in interface ISessionTimertask - 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.public ITimerTask scheduleEvent(Object event, long delay)
scheduleEvent in interface ISessionTimerevent - the event to be scheduleddelay - the delay in millisecondspublic ITimerTask scheduleTask(Runnable task, long delay, long period, boolean inHandler)
scheduleTask in interface ISessionTimertask - 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.public ITimerTask scheduleEvent(Object event, long delay, long period)
scheduleEvent in interface ISessionTimerevent - the event to be scheduleddelay - the delay in millisecondsperiod - time in milliseconds between successive timer event triggeringCopyright © 2017–2022 SNF4J.ORG. All rights reserved.