Class DelegateInvoker

    • Constructor Detail

    • Method Detail

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