Interface Sleeper


public interface Sleeper
Abstraction around Thread.sleep(long) to permit better testability.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Sleeper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sleep(Duration duration)
    Sleeps for the specified duration of time.
  • Field Details

    • SYSTEM_SLEEPER

      static final Sleeper SYSTEM_SLEEPER
  • Method Details