Class DelegateInvoker
- java.lang.Object
-
- io.quarkus.scheduler.common.runtime.DelegateInvoker
-
- All Implemented Interfaces:
ScheduledInvoker
- Direct Known Subclasses:
SkipConcurrentExecutionInvoker,SkipPredicateInvoker,StatusEmitterInvoker
abstract class DelegateInvoker extends Object implements ScheduledInvoker
-
-
Field Summary
Fields Modifier and Type Field Description protected ScheduledInvokerdelegate
-
Constructor Summary
Constructors Constructor Description DelegateInvoker(ScheduledInvoker delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBlocking()A blocking invoker is executed on the main executor for blocking tasks.booleanisRunningOnVirtualThread()Indicates 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, wait
-
Methods inherited from interface io.quarkus.scheduler.common.runtime.ScheduledInvoker
invoke
-
-
-
-
Field Detail
-
delegate
protected final ScheduledInvoker delegate
-
-
Constructor Detail
-
DelegateInvoker
public DelegateInvoker(ScheduledInvoker delegate)
-
-
Method Detail
-
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.
-
-