|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.j_spaces.kernel.time.SystemTime
public final class SystemTime
A static system time wrapper, which will call the underlying
ITimeProvider implementation.
usage:
long time = SystemTime.timeMillis();
AbsoluteTime is the default
implementation of ITimeProvider. Custom time implementations
can be provided by use of a system property. The value of the property
should name a class implementing ITimeProvider interface.
e.g. for applying a "relative time" provider, you can either: 1. Set via System property: (recommended option)-Dcom.gs.time-provider=com.j_spaces.kernel.time.RelativeTime2. Set via container xml-tag value:<time-provider>com.j_spaces.kernel.time.RelativeTime</time-provider>
All known implementations, can be queried as follows:
| Method Summary | |
|---|---|
static String |
getTimeProviderName()
|
static boolean |
isAbsoluteTime()
|
static boolean |
isRelativeTime()
|
static long |
timeMillis()
Returns the time in milliseconds specified by the underlying ITimerProvider implementation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static long timeMillis()
public static String getTimeProviderName()
public static boolean isRelativeTime()
RelativeTimepublic static boolean isAbsoluteTime()
AbsoluteTime
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||