Interface ITimeouts

All Known Implementing Classes:
TimerEngineTimeouts

public interface ITimeouts
The seam through which the upload registry arms its start and idle timeouts, so that the production implementation can be the server's TimerEngine and a test can be a fake clock that fires on demand.
Author:
Christopher Mindus
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A scheduled timeout that can be cancelled.
  • Method Summary

    Modifier and Type
    Method
    Description
    schedule(long delayMillis, String description, Runnable task)
    Schedules a task to run once after a delay, on a thread of the implementation's choosing.
  • Method Details

    • schedule

      ITimeouts.IHandle schedule(long delayMillis, String description, Runnable task)
      Schedules a task to run once after a delay, on a thread of the implementation's choosing.
      Parameters:
      delayMillis - The delay in milliseconds.
      description - A short description for diagnostics.
      task - The task.
      Returns:
      The handle.
      Throws:
      NullPointerException - If the task is null.