public class SimpleTriggerStrategy extends Object implements TriggerStrategy
SimpleTrigger annotation for
defining simple periodic executions.| Constructor and Description |
|---|
SimpleTriggerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Class<SimpleTrigger> |
getTriggerType()
Returns the annotation type that this strategy can handle.
|
void |
schedule(Method method,
Object self,
ScheduledExecutorService executor)
Extracts scheduling information from the provided
Method and then
schedules invocations of that method according to the information. |
public Class<SimpleTrigger> getTriggerType()
TriggerStrategygetTriggerType in interface TriggerStrategypublic void schedule(Method method, Object self, ScheduledExecutorService executor)
TriggerStrategyMethod and then
schedules invocations of that method according to the information.
To support invocation of parameterized methods, implementors can refer to
InjectedMethodInvocation to inject actual parameters of a method.
schedule in interface TriggerStrategymethod - The method to schedule.self - The object to invoke the method on.executor - The executor to use for scheduling.Copyright © 2014–2016. All rights reserved.