Interface ScheduledInvoker
- All Known Implementing Classes:
DefaultInvoker,DelayedExecutionInvoker,DelegateInvoker,InstrumentedInvoker,OffloadingInvoker,SkipConcurrentExecutionInvoker,SkipPredicateInvoker,StatusEmitterInvoker
public interface ScheduledInvoker
Invokes a scheduled business method of a bean.
-
Method Summary
Modifier and TypeMethodDescriptioninvoke(io.quarkus.scheduler.ScheduledExecution execution) default booleanA blocking invoker is executed on the main executor for blocking tasks.default booleanIndicates that the invoker used the virtual thread executor to execute the tasks.
-
Method Details
-
invoke
- Parameters:
execution-- Returns:
- the result, never
null - 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
-
isRunningOnVirtualThread
default boolean isRunningOnVirtualThread()Indicates that the invoker used the virtual thread executor to execute the tasks. Note that the method must use a synchronous signature.- Returns:
trueif the scheduled method runs on a virtual thread.
-