public class CronTriggerStrategy extends Object implements TriggerStrategy
CronTrigger annotation.| Constructor and Description |
|---|
CronTriggerStrategy()
Public constructor for being instantiated by the
ServiceLoader. |
| Modifier and Type | Method and Description |
|---|---|
Class<CronTrigger> |
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 CronTriggerStrategy()
ServiceLoader. Supports
being used with the default TriggerStrategyRegistry which performs member
injection on all strategies that are loaded using the ServiceLoader.public Class<CronTrigger> 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.