Class DelegateInvoker

java.lang.Object
io.quarkus.scheduler.common.runtime.DelegateInvoker
All Implemented Interfaces:
ScheduledInvoker
Direct Known Subclasses:
DelayedExecutionInvoker, InstrumentedInvoker, OffloadingInvoker, SkipConcurrentExecutionInvoker, SkipPredicateInvoker, StatusEmitterInvoker

abstract class DelegateInvoker extends Object implements ScheduledInvoker
  • Field Details

  • Constructor Details

  • Method Details

    • isBlocking

      public boolean isBlocking()
      Description copied from interface: ScheduledInvoker
      A blocking invoker is executed on the main executor for blocking tasks. A non-blocking invoker is executed on the event loop.
      Specified by:
      isBlocking in interface ScheduledInvoker
      Returns:
      true if the scheduled method is blocking, false otherwise
    • isRunningOnVirtualThread

      public boolean isRunningOnVirtualThread()
      Description copied from interface: ScheduledInvoker
      Indicates that the invoker used the virtual thread executor to execute the tasks. Note that the method must use a synchronous signature.
      Specified by:
      isRunningOnVirtualThread in interface ScheduledInvoker
      Returns:
      true if the scheduled method runs on a virtual thread.
    • invokeDelegate

      protected CompletionStage<Void> invokeDelegate(ScheduledExecution execution)
    • invokeComplete

      protected void invokeComplete(CompletableFuture<Void> ret, ScheduledExecution execution)