Package io.ebeaninternal.server.core
Class ClockService
- java.lang.Object
-
- io.ebeaninternal.server.core.ClockService
-
public class ClockService extends Object
Wraps the Clock such that we can change the Clock for testing purposes.
-
-
Constructor Summary
Constructors Constructor Description ClockService(Clock clock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
nowMillis()
Return the Clock current timestamp in millis.void
setClock(Clock clock)
Change the clock for testing purposes.
-
-
-
Constructor Detail
-
ClockService
public ClockService(Clock clock)
-
-