Modifier and Type | Method and Description |
---|---|
static boolean |
isPositive(Duration dur) |
static String |
printDuration(double uptime)
Prints the duration in a human readable format as X days Y hours Z minutes etc.
|
static String |
printDuration(Duration uptime) |
static Duration |
toDuration(String source) |
static long |
toMilliSeconds(String source) |
public static boolean isPositive(Duration dur)
public static String printDuration(Duration uptime)
public static String printDuration(double uptime)
uptime
- the uptime in millispublic static Duration toDuration(String source) throws IllegalArgumentException
IllegalArgumentException
public static long toMilliSeconds(String source) throws IllegalArgumentException
IllegalArgumentException
Apache Camel