|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--one.world.binding.Duration
The definition of duration constants. Durations of leases are
expresed in milliseconds, consistent with Java's use of
milliseconds, with the exception of FOREVER, which has the
maximum long value and denotes an infinite duration, and ANY, which has -1 as its value and denotes any duration. As a
result, all non-negative long numbers, besides the maximum value,
can be used as valid, specific durations.
| Field Summary | |
static long |
ANY
Any duration. |
static long |
DAY
A day. |
static long |
FOREVER
Forever. |
static long |
HOUR
An hour. |
static long |
MINUTE
A minute. |
static long |
SECOND
A second. |
static long |
YEAR
A year. |
| Method Summary | |
static String |
format(long millis)
Format the specified duration in milliseconds as years, days, hours, minutes, and seconds. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final long SECOND
public static final long MINUTE
public static final long HOUR
public static final long DAY
public static final long YEAR
public static final long FOREVER
public static final long ANY
| Method Detail |
public static String format(long millis)
millis - The duration in milliseconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||