Interface ScheduledInvoker

    • Method Detail

      • 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.