Package org.kie.api.time
Interface SessionPseudoClock
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionlongadvanceTime(long amount, TimeUnit unit) Advances the clock time in the specified unit amount.Methods inherited from interface org.kie.api.time.SessionClock
getCurrentTime
-
Method Details
-
advanceTime
Advances the clock time in the specified unit amount.- Parameters:
amount- the amount of units to advance in the clockunit- the used time unit- Returns:
- the current absolute timestamp
-