Interface RetrySleeper


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

    Modifier and Type Method Description
    void sleepFor​(long time, java.util.concurrent.TimeUnit unit)
    Sleep for the given time
  • Method Details

    • 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