public final class TimerEvent extends EventObject
TimerEvent event is sent to those
TimerTaskListener objects registered
with an expired TimerTask.
Note: The event's source is a
TimerTask.
TimerTask,
TimerTaskListener,
Serialized Formsource| Constructor and Description |
|---|
TimerEvent(TimerTask timerTask,
Object value)
Creates a timer event for the specified timer task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the underlying
timer task. |
Object |
value()
Returns the timer task associated value.
|
getSource, toStringpublic TimerEvent(TimerTask timerTask, Object value)
TimerTask.TimerTask(net.sf.eBus.util.TimerTaskListener, java.lang.Object).timerTask - The event source.value - The timer's associated value. May be
null.TimerTaskpublic Object value()
null.public void cancel()
timer task.TimerTaskCopyright © 2019. All rights reserved.