Class GlobalPump

java.lang.Object
com.ultikits.ultitools.ui.runtime.GlobalPump
All Implemented Interfaces:
AutoCloseable

@Internal public final class GlobalPump extends Object implements AutoCloseable
A single repeating global task; retirement callbacks only enqueue, never submit scheduler tasks.
  • Field Details

  • Constructor Details

    • GlobalPump

      public GlobalPump(Scheduler scheduler, Logger logger)
      Starts the pump on the framework-owned scheduler.
  • Method Details

    • execute

      public void execute(Runnable task)
      Enqueues work for the next global drain without touching the scheduler.
    • drain

      private void drain()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable