public final class SystemTime extends Object
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.RelativeTime
2. Set via container xml-tag value:<time-provider>com.j_spaces.kernel.time.RelativeTime</time-provider>
All known implementations, can be queried as follows:
Constructor and Description |
---|
SystemTime() |
Modifier and Type | Method and Description |
---|---|
static long |
timeMillis()
Returns the time in milliseconds specified by the underlying ITimerProvider implementation.
|
public static long timeMillis()
Copyright © GigaSpaces.