public class CronTriggerStrategy extends Object implements TriggerStrategy
CronTrigger annotation.| Constructor and Description |
|---|
CronTriggerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
Class<CronTrigger> |
getTriggerType()
Returns the annotation type that this strategy can handle.
|
ScheduledContext |
schedule(Method method,
Object self,
ScheduledExecutorService executor,
ExceptionHandler handler)
Extracts scheduling information from the provided
Method and then schedules
invocations of that method according to the information. |
public Class<CronTrigger> getTriggerType()
TriggerStrategygetTriggerType in interface TriggerStrategypublic ScheduledContext schedule(Method method, Object self, ScheduledExecutorService executor, ExceptionHandler handler)
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. This will be null in case that the
method is static.executor - The executor to use for scheduling.handler - The exception handler to be used.ScheduledContext.Copyright © 2014–2018. All rights reserved.