Interface Sleeper
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ObjectWaitSleeper,ThreadWaitSleeper
Strategy interface for backoff policies to delegate the pausing of execution.
- Author:
- Dave Syer
-
Method Summary
Modifier and TypeMethodDescriptionvoidsleep(long backOffPeriod) Pause for the specified period using whatever means available.
-
Method Details
-
sleep
Pause for the specified period using whatever means available.- Parameters:
backOffPeriod- the backoff period- Throws:
InterruptedException- the exception when interrupted
-