Class TimeUtils
- java.lang.Object
-
- org.apache.activemq.artemis.utils.TimeUtils
-
public final class TimeUtils extends java.lang.ObjectTime utils.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTimeUtils.CheckMethod
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringprintDuration(double uptime)Prints the duration in a human readable format as X days Y hours Z minutes etc.static booleanwaitOnBoolean(boolean expected, long timeout, TimeUtils.CheckMethod check)
-
-
-
Method Detail
-
printDuration
public static java.lang.String printDuration(double uptime)
Prints the duration in a human readable format as X days Y hours Z minutes etc.- Parameters:
uptime- the uptime in millis- Returns:
- the time used for displaying on screen or in logs
-
waitOnBoolean
public static boolean waitOnBoolean(boolean expected, long timeout, TimeUtils.CheckMethod check)
-
-