Class Sleeper

java.lang.Object
de.galan.commons.time.Sleeper

public class Sleeper extends Object
Encapsulates the InterruptedException from Thread.sleep(ms).
  • Constructor Details

    • Sleeper

      public Sleeper()
  • Method Details

    • 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