MethodInvokingRunnable 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.
org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor
| Modifier and Type | Field and Description |
|---|---|
| private static final ScheduledTaskObservationConvention | |
| private final Method | |
| private final Supplier | |
| private final String | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | ScheduledMethodRunnable(Object
the target instance to call the method on target, Method the target method to call method, String a qualifier associated with this Runnable,
e.g. for determining a scheduler to run this scheduled method on qualifier, Supplier<ObservationRegistry> a supplier for the observation registry to use observationRegistrySupplier)Create a |
| public | ScheduledMethodRunnable(Object
the target instance to call the method on target, Method the target method to call method)Create a |
| public | ScheduledMethodRunnable(Object
the target instance to call the method on target, String the name of the target method methodName)Create a |
| Modifier and Type | Method and Description |
|---|---|
| public Method | |
| public String | getQualifier()
Overrides default org. |
| public Object | |
| public void | |
| private void | |
| public String |
| DEFAULT_CONVENTION | back to summary |
|---|---|
| private static final ScheduledTaskObservationConvention DEFAULT_CONVENTION | |
| method | back to summary |
|---|---|
| private final Method method | |
| observationRegistrySupplier | back to summary |
|---|---|
| private final Supplier<ObservationRegistry> observationRegistrySupplier | |
| qualifier | back to summary |
|---|---|
| private final String qualifier
| |
| target | back to summary |
|---|---|
| private final Object target | |
| ScheduledMethodRunnable | back to summary |
|---|---|
| public ScheduledMethodRunnable(Object target, Method method, String qualifier, Supplier<ObservationRegistry> observationRegistrySupplier) Create a
| |
| ScheduledMethodRunnable | back to summary |
|---|---|
| public ScheduledMethodRunnable(Object target, Method method) Create a | |
| ScheduledMethodRunnable | back to summary |
|---|---|
| public ScheduledMethodRunnable(Object target, String methodName) throws NoSuchMethodException Create a
| |
| getMethod | back to summary |
|---|---|
| public Method getMethod() Return the target method to call. | |
| getQualifier | back to summary |
|---|---|
| public String getQualifier() Overrides default org. Doc from org. Return a qualifier associated with this Runnable. The default implementation returns May be used for custom purposes depending on the scheduler implementation.
| |
| getTarget | back to summary |
|---|---|
| public Object getTarget() Return the target instance to call the method on. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| runInternal | back to summary |
|---|---|
| private void runInternal(ScheduledTaskObservationContext context) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |