Interface ScheduledInvoker
-
- All Known Implementing Classes:
DefaultInvoker,DelegateInvoker,SkipConcurrentExecutionInvoker,SkipPredicateInvoker,StatusEmitterInvoker
public interface ScheduledInvokerInvokes a scheduled business method of a bean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CompletionStage<Void>invoke(ScheduledExecution execution)default booleanisBlocking()A blocking invoker is executed on the main executor for blocking tasks.
-
-
-
Method Detail
-
invoke
CompletionStage<Void> invoke(ScheduledExecution execution) throws Exception
- Parameters:
execution-- Returns:
- the result
- Throws:
Exception
-
isBlocking
default boolean isBlocking()
A blocking invoker is executed on the main executor for blocking tasks. A non-blocking invoker is executed on the event loop.- Returns:
trueif the scheduled method is blocking,falseotherwise
-
-