Package com.github.mike10004.xvfbmanager
Class Sleeper.DefaultSleeper
- java.lang.Object
-
- com.github.mike10004.xvfbmanager.Sleeper.DefaultSleeper
-
- All Implemented Interfaces:
Sleeper
- Enclosing interface:
- Sleeper
public static class Sleeper.DefaultSleeper extends Object implements Sleeper
Default sleeper implementation. UsesThread.sleep(long).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.mike10004.xvfbmanager.Sleeper
Sleeper.DefaultSleeper
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Sleeper.DefaultSleepergetInstance()Gets the singleton instance of this class.voidsleep(long millis)Sleep for the given number of milliseconds.
-
-
-
Method Detail
-
getInstance
public static Sleeper.DefaultSleeper getInstance()
Gets the singleton instance of this class.- Returns:
- the singleton
-
sleep
public void sleep(long millis) throws InterruptedExceptionDescription copied from interface:SleeperSleep for the given number of milliseconds.- Specified by:
sleepin interfaceSleeper- Parameters:
millis- the sleep duration- Throws:
InterruptedException- if sleep is interrupted
-
-