|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.utils.toolkit.Scheduler
public class Scheduler
Scheduler of channel-related events. It uses Timer
object to build events
firing plan. Using this class it is possible to scheduler big number of events related
to different channels with individual period and priority settings. It is also possible
to unsechedule processing of channels, reschedule to another period and request
immediate firing of processing event with consequent rebuilding of events plan.
Constructor Summary | |
---|---|
Scheduler(SchedulerCallbackIF callback)
Creates scheduler object. |
Method Summary | |
---|---|
void |
rescheduleAll(long period)
Reschedules all of the tasks with new period setting. |
void |
rescheduleChannel(ChannelIF channel,
long period)
Reschedules single channel. |
void |
schedule(ChannelIF channel,
long period,
int priority)
Schedule single channel for poller. |
void |
schedule(ChannelIF channel,
long delay,
long period,
int priority)
Schedule single channel for poller. |
void |
triggerNow(ChannelIF channel)
Triggers channel event immediately (if it is registered) and reschedules consequent events. |
void |
unschedule(ChannelIF channel)
Stop poller the channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scheduler(SchedulerCallbackIF callback)
callback
- callback object.Method Detail |
---|
public final void schedule(ChannelIF channel, long period, int priority)
channel
- channel to schedule for poller.period
- period of poller.priority
- priority of the task.public final void schedule(ChannelIF channel, long delay, long period, int priority)
channel
- channel to schedule for poller.delay
- delay before first polling.period
- period of poller.priority
- priority of the task.public final void unschedule(ChannelIF channel)
channel
- channel to poll no more.public final void triggerNow(ChannelIF channel)
channel
- channel.public final void rescheduleAll(long period)
period
- period in millis.public final void rescheduleChannel(ChannelIF channel, long period)
channel
- channel.period
- new period.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |