Class ThreadWaitSleeper
java.lang.Object
org.springframework.retry.backoff.ThreadWaitSleeper
- All Implemented Interfaces:
Serializable
,Sleeper
Simple
Sleeper
implementation that just blocks the current Thread with sleep
period.- Since:
- 1.1
- Author:
- Artem Bilan
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sleep
(long backOffPeriod) Pause for the specified period using whatever means available.
-
Constructor Details
-
ThreadWaitSleeper
public ThreadWaitSleeper()
-
-
Method Details
-
sleep
Description copied from interface:Sleeper
Pause for the specified period using whatever means available.- Specified by:
sleep
in interfaceSleeper
- Parameters:
backOffPeriod
- the backoff period- Throws:
InterruptedException
- the exception when interrupted
-