Class DelegateInvoker
java.lang.Object
io.quarkus.scheduler.common.runtime.DelegateInvoker
- All Implemented Interfaces:
ScheduledInvoker
- Direct Known Subclasses:
DelayedExecutionInvoker,InstrumentedInvoker,OffloadingInvoker,SkipConcurrentExecutionInvoker,SkipPredicateInvoker,StatusEmitterInvoker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinvokeComplete(CompletableFuture<Void> ret, ScheduledExecution execution) protected CompletionStage<Void>invokeDelegate(ScheduledExecution execution) booleanA blocking invoker is executed on the main executor for blocking tasks.booleanIndicates that the invoker used the virtual thread executor to execute the tasks.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.scheduler.common.runtime.ScheduledInvoker
invoke
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegateInvoker
-
-
Method Details
-
isBlocking
public boolean isBlocking()Description copied from interface:ScheduledInvokerA blocking invoker is executed on the main executor for blocking tasks. A non-blocking invoker is executed on the event loop.- Specified by:
isBlockingin interfaceScheduledInvoker- Returns:
trueif the scheduled method is blocking,falseotherwise
-
isRunningOnVirtualThread
public boolean isRunningOnVirtualThread()Description copied from interface:ScheduledInvokerIndicates that the invoker used the virtual thread executor to execute the tasks. Note that the method must use a synchronous signature.- Specified by:
isRunningOnVirtualThreadin interfaceScheduledInvoker- Returns:
trueif the scheduled method runs on a virtual thread.
-
invokeDelegate
-
invokeComplete
-