spring-framework / org.springframework.scheduling.support / ScheduledMethodRunnable

ScheduledMethodRunnable

open class ScheduledMethodRunnable : Runnable

Variant of 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.

Author
Juergen Hoeller

Since
3.0.6

See Also
org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor

Constructors

<init>

ScheduledMethodRunnable(target: Any, method: Method)
ScheduledMethodRunnable(target: Any, methodName: String)

Functions

getMethod

open fun getMethod(): Method

getTarget

open fun getTarget(): Any

run

open fun run(): Unit

toString

open fun toString(): String