|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
org.mule.util.timer.EventTimerTask
public class EventTimerTask
EventTimerTask
is a task that causes TimeEvent to be fired to
listening objects when a specific number of milliseconds have passed. This
implementation is based on the java.util.TimerTask.
Constructor Summary | |
---|---|
EventTimerTask(TimeEventListener listener)
Constructs a EventTimeTask and registers a listener with it |
|
EventTimerTask(TimeEventListener listener,
String name)
Constructs a EventTimeTask and registers a listener with it |
Method Summary | |
---|---|
void |
addListener(TimeEventListener listener)
|
protected void |
fireTimerEvent(TimeEvent event)
|
String |
getName()
Gets the task name (this is also the timer thread name) |
boolean |
isStarted()
|
void |
removeAllListeners()
|
void |
removeListener(TimeEventListener listener)
|
void |
run()
The action to be performed by this timer task. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventTimerTask(TimeEventListener listener)
listener
- the listener to registerpublic EventTimerTask(TimeEventListener listener, String name)
listener
- the listener to registername
- the name for the taskMethod Detail |
---|
public void run()
run
in interface Runnable
run
in class TimerTask
public String getName()
public void removeListener(TimeEventListener listener)
public void removeAllListeners()
public void addListener(TimeEventListener listener)
protected void fireTimerEvent(TimeEvent event)
public void stop()
public void start()
public boolean isStarted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |