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()
ISessionTimer
isSupported
in interface ISessionTimer
false
public ITimerTask scheduleTask(Runnable task, long delay, boolean inHandler)
scheduleTask
in interface ISessionTimer
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.public ITimerTask scheduleEvent(Object event, long delay)
scheduleEvent
in interface ISessionTimer
event
- the event to be scheduleddelay
- the delay in millisecondspublic ITimerTask scheduleTask(Runnable task, long delay, long period, boolean inHandler)
scheduleTask
in interface ISessionTimer
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.public ITimerTask scheduleEvent(Object event, long delay, long period)
scheduleEvent
in interface ISessionTimer
event
- the event to be scheduleddelay
- the delay in millisecondsperiod
- time in milliseconds between successive timer event triggeringCopyright © 2017–2021 SNF4J.ORG. All rights reserved.