Package org.moduliths.moments.support
Class TimeMachine
java.lang.Object
org.moduliths.moments.support.Moments
org.moduliths.moments.support.TimeMachine
Extension of
Moments to publicly expose methods to shift time.- Since:
- 1.3
- Author:
- Oliver Drotbohm
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeMachine(Clock clock, org.springframework.context.ApplicationEventPublisher events, MomentsProperties properties) -
Method Summary
Methods inherited from class org.moduliths.moments.support.Moments
emitEventsFor, emitEventsFor, everyHour, everyMidnight
-
Constructor Details
-
TimeMachine
public TimeMachine(Clock clock, org.springframework.context.ApplicationEventPublisher events, MomentsProperties properties) - Parameters:
clock- must not be null.events- must not be null.properties- must not be null.
-
-
Method Details