Package org.forgerock.util.time
Class ClockTimeService
- java.lang.Object
-
- org.forgerock.util.time.ClockTimeService
-
- All Implemented Interfaces:
TimeService
@Deprecated public class ClockTimeService extends Object implements TimeService
Deprecated.A Clock-based TimeService adapter to allow using Clock for TimeService-based dependencies.
-
-
Field Summary
-
Fields inherited from interface org.forgerock.util.time.TimeService
SYSTEM
-
-
Constructor Summary
Constructors Constructor Description ClockTimeService(Clock clock)
Deprecated.Constructs a Clock-based TimeService.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description long
now()
Deprecated.Returns a value that represents "now" since the epoch.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.forgerock.util.time.TimeService
since
-
-
-
-
Constructor Detail
-
ClockTimeService
public ClockTimeService(Clock clock)
Deprecated.Constructs a Clock-based TimeService.- Parameters:
clock
- the Clock instance
-
-
Method Detail
-
now
public long now()
Deprecated.Description copied from interface:TimeService
Returns a value that represents "now" since the epoch.- Specified by:
now
in interfaceTimeService
- Returns:
- a value that represents "now" since the epoch.
-
-