Class ThreadSleepClockImpl

  • All Implemented Interfaces:
    Clock

    public class ThreadSleepClockImpl
    extends java.lang.Object
    implements Clock
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean sleep​(long millis)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadSleepClockImpl

        public ThreadSleepClockImpl()
    • Method Detail

      • sleep

        public boolean sleep​(long millis)
                      throws java.lang.InterruptedException
        Specified by:
        sleep in interface Clock
        Throws:
        java.lang.InterruptedException