Interface ActorClockService
- All Known Implementing Classes:
ControlledActorClockService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A service which wraps an
ActorClock instance. We can't
directly use an actor clock since the interface is by nature immutable, so instead we wrap it.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA mutable variant of this service. -
Method Summary
Modifier and TypeMethodDescriptionlongdefault Optional<ActorClockService.MutableClock>mutable()
-
Method Details
-
epochMilli
long epochMilli()- Returns:
- the current instant of the clock
-
mutable
- Returns:
- a mutable variant of the underlying clock, or nothing if the clock is immutable
-