Interface SessionPseudoClock

  • All Superinterfaces:

    public interface SessionPseudoClock
    extends SessionClock
    A clock interface for the implementation of pseudo clocks, that are clocks where the user have control over the actual clock working. Pseudo clocks are particularly useful for simulations, "what if" scenario runs, and for tests.
    • Method Detail

      • advanceTime

        long advanceTime​(long amount,
                         java.util.concurrent.TimeUnit unit)
        Advances the clock time in the specified unit amount.
        amount - the amount of units to advance in the clock
        unit - the used time unit
        the current absolute timestamp