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 Details

    • ClockService

      public ClockService(Clock clock)
  • Method Details

    • setClock

      public void setClock(Clock clock)
      Change the clock for testing purposes.
    • nowMillis

      public long nowMillis()
      Return the Clock current timestamp in millis.