Package de.galan.commons.time
Class Sleeper
java.lang.Object
de.galan.commons.time.Sleeper
Encapsulates the InterruptedException from Thread.sleep(ms).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Sleeper
public Sleeper()
-
-
Method Details
-
sleep
Sleep a given time (time is parsed with HumanTime)- Parameters:
humanTime- The time in a format such as 30m10s10ms
-
sleep
public static void sleep(long millis) Sleep the given milliseconds, swallowing the exception- Parameters:
millis- time in milliseconds
-