Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
cancel, scheduledExecutionTime
public EventTimerTask(TimeEventListener listener)
listener
- the listener to registerpublic EventTimerTask(TimeEventListener listener, String name)
listener
- the listener to registername
- the name for the taskpublic void run()
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()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.