Package de.galan.commons.time
Class Sleeper
- java.lang.Object
-
- de.galan.commons.time.Sleeper
-
public class Sleeper extends Object
Encapsulates the InterruptedException from Thread.sleep(ms).
-
-
Constructor Summary
Constructors Constructor Description Sleeper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidsleep(long millis)Sleep the given milliseconds, swallowing the exceptionstatic voidsleep(String humanTime)Sleep a given time (time is parsed with HumanTime)
-
-
-
Method Detail
-
sleep
public static void sleep(String humanTime)
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
-
-