Class TimerEngineTimeouts

java.lang.Object
com.iizix.server.upload.TimerEngineTimeouts
All Implemented Interfaces:
ITimeouts

public final class TimerEngineTimeouts extends Object implements ITimeouts
The production ITimeouts: one-shot timeouts on the server's ITimerEngine (the system instance, disposed with the server).
Author:
Christopher Mindus
  • Constructor Details

    • TimerEngineTimeouts

      public TimerEngineTimeouts(ITimerEngine engine)
      Constructor.
      Parameters:
      engine - The timer engine, typically TimerEngine.getSystemInstance().
      Throws:
      NullPointerException - If the engine is null.
  • Method Details

    • schedule

      public ITimeouts.IHandle schedule(long delayMillis, String description, Runnable task)
      Schedules a one-shot timeout.
      Specified by:
      schedule in interface ITimeouts
      Parameters:
      delayMillis - The delay in milliseconds.
      description - A short description for diagnostics.
      task - The task.
      Returns:
      The handle.