public interface Sleeper
Thread.sleep(long) to permit better testability.| Modifier and Type | Field and Description |
|---|---|
static Sleeper |
SYSTEM_SLEEPER |
static final Sleeper SYSTEM_SLEEPER
void sleep(Duration duration) throws InterruptedException
duration - How long to sleep.InterruptedException - If hte thread is interrupted while sleeping.Copyright © 2013. All Rights Reserved.