Package io.camunda.zeebe.stream.api
Interface StreamClock
- All Superinterfaces:
InstantSource
- All Known Subinterfaces:
StreamClock.ControllableStreamClock
- All Known Implementing Classes:
ControllableStreamClockImpl,UncontrolledStreamClock
A clock that provides the current time. Used as a marker interface instead of using
InstantSource directly to indicate that the clock is used for stream processing.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA controllableStreamClockthat allows to pin the time to a specific instant or to offset the current system time by some duration. -
Method Summary
Modifier and TypeMethodDescriptioncontrollable(InstantSource source) Returns the current modification applied to the clock.static StreamClocksystem()static StreamClockuncontrolled(InstantSource source) Methods inherited from interface java.time.InstantSource
instant, millis, withZone
-
Method Details
-
uncontrolled
-
system
-
controllable
-
currentModification
StreamClock.ControllableStreamClock.Modification currentModification()Returns the current modification applied to the clock. If no modification is applied,StreamClock.ControllableStreamClock.Modification.Noneis returned.
-