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 Type
    Method
    Description
     
    default boolean
    A blocking invoker is executed on the main executor for blocking tasks.
    default boolean
    Indicates that the invoker used the virtual thread executor to execute the tasks.
  • Method Details

    • invoke

      CompletionStage<Void> invoke(ScheduledExecution execution) throws Exception
      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:
      true if the scheduled method is blocking, false otherwise
    • 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:
      true if the scheduled method runs on a virtual thread.