Interface SchedulerAbstraction

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SchedulerAbstraction
Scheduling interface useful for unit testing.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    schedule(Runnable task, long timeout, TimeUnit unit)
    Schedule a task to run after a timeout.
  • Method Details

    • schedule

      void schedule(Runnable task, long timeout, TimeUnit unit)
      Schedule a task to run after a timeout.