public interface SleeperSleeper interface to use for requesting the current thread to sleep as specified in Thread#sleep(long).
The default implementation can be accessed at #DEFAULT. Primarily used for testing.
Static Fields
DEFAULT
public static final Sleeper DEFAULTProvides the default implementation based on Thread#sleep(long).
| Type | Description |
| Sleeper |
Methods
sleep(long millis)
public abstract void sleep(long millis)Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds as specified in Thread#sleep(long).
| Name | Description |
| millis | longlength of time to sleep in milliseconds |
| Type | Description |
| InterruptedException | if any thread has interrupted the current thread |