Interface RetrySleeper


  • public interface RetrySleeper
    Abstraction for retry policies to sleep
    • Method Detail

      • sleepFor

        void sleepFor​(long time,
                      java.util.concurrent.TimeUnit unit)
               throws java.lang.InterruptedException
        Sleep for the given time
        Parameters:
        time - time
        unit - time unit
        Throws:
        java.lang.InterruptedException - if the sleep is interrupted