Class ScheduledMethodRunnable
- java.lang.Object
- org.springframework.scheduling.support.ScheduledMethodRunnable
- All Implemented Interfaces:
Runnable
public class ScheduledMethodRunnable extends Object implements Runnable
Variant ofMethodInvokingRunnable
meant to be used for processing of no-arg scheduled methods. Propagates user exceptions to the caller, assuming that an error strategy for Runnables is in place.- Since:
- 3.0.6
- Author:
- Juergen Hoeller
- See Also:
ScheduledAnnotationBeanPostProcessor
Constructor Summary
Constructors Constructor Description ScheduledMethodRunnable(Object target, Method method)
ScheduledMethodRunnable(Object target, String methodName)
Constructor Detail
ScheduledMethodRunnable
public ScheduledMethodRunnable(Object target, Method method)
ScheduledMethodRunnable
public ScheduledMethodRunnable(Object target, String methodName) throws NoSuchMethodException
- Throws:
NoSuchMethodException