Package alluxio.time

Class ThreadSleeper

  • All Implemented Interfaces:
    Sleeper

    public final class ThreadSleeper
    extends java.lang.Object
    implements Sleeper
    A sleeping utility which delegates to Thread.sleep().
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sleep​(java.time.Duration duration)
      Sleeps for the given duration.
      • Methods inherited from class java.lang.Object

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

      • sleep

        public void sleep​(java.time.Duration duration)
                   throws java.lang.InterruptedException
        Description copied from interface: Sleeper
        Sleeps for the given duration.
        Specified by:
        sleep in interface Sleeper
        Parameters:
        duration - the duration to sleep for
        Throws:
        java.lang.InterruptedException - if the sleep is interrupted