Interface ActorClockService.MutableClock

All Known Implementing Classes:
ControlledActorClockService
Enclosing interface:
ActorClockService

public static interface ActorClockService.MutableClock
A mutable variant of this service.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTime(Duration offset)
    Adds the offset to the current clock.
    void
    Pins the clock to the given time.
    void
    Resets the clock to use the system time
  • Method Details

    • addTime

      void addTime(Duration offset)
      Adds the offset to the current clock.
      Parameters:
      offset - the time offset to add to the current time
    • pinTime

      void pinTime(Instant time)
      Pins the clock to the given time.
      Parameters:
      time - the time at which to pin the current clock
    • resetTime

      void resetTime()
      Resets the clock to use the system time