Class ThreadWaitSleeper

java.lang.Object
org.springframework.retry.backoff.ThreadWaitSleeper
All Implemented Interfaces:
Serializable, Sleeper

public class ThreadWaitSleeper extends Object implements Sleeper
Simple Sleeper implementation that just blocks the current Thread with sleep period.
Since:
1.1
Author:
Artem Bilan
See Also:
  • Constructor Details

    • ThreadWaitSleeper

      public ThreadWaitSleeper()
  • Method Details

    • sleep

      public void sleep(long backOffPeriod) throws InterruptedException
      Description copied from interface: Sleeper
      Pause for the specified period using whatever means available.
      Specified by:
      sleep in interface Sleeper
      Parameters:
      backOffPeriod - the backoff period
      Throws:
      InterruptedException - the exception when interrupted