public class TimerTrigger<S,E> extends LifecycleObjectSupport implements Trigger<S,E>
| Constructor and Description |
|---|
TimerTrigger(long period) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTriggerListener(TriggerListener listener)
Adds the trigger listener.
|
protected void |
doStart()
Subclasses may implement this method with the start behavior.
|
protected void |
doStop()
Subclasses may implement this method with the stop behavior.
|
boolean |
evaluate(TriggerContext<S,E> context)
Evaluate trigger.
|
E |
getEvent()
Gets the event associated with this trigger.
|
afterPropertiesSet, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, start, stop, stoppublic boolean evaluate(TriggerContext<S,E> context)
Triggerpublic void addTriggerListener(TriggerListener listener)
TriggeraddTriggerListener in interface Trigger<S,E>listener - the listenerpublic E getEvent()
Triggerprotected void doStart()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStart in class LifecycleObjectSupportprotected void doStop()
LifecycleObjectSupportLifecycleObjectSupport.lifecycleLock.doStop in class LifecycleObjectSupport