Index
All Classes and Interfaces|All Packages
C
- contains(LocalDate) - Method in class org.springframework.modulith.moments.ShiftedQuarter
-
Returns whether the given
LocalDateis contained in the currentShiftedQuarter.
D
- DayHasPassed - Class in org.springframework.modulith.moments
-
A
DomainEventpublished on each day. - DAYS - Enum constant in enum class org.springframework.modulith.moments.support.MomentsProperties.Granularity
-
Publish daily events only.
- DEFAULTS - Static variable in class org.springframework.modulith.moments.support.MomentsProperties
E
- equals(Object) - Method in class org.springframework.modulith.moments.DayHasPassed
- equals(Object) - Method in class org.springframework.modulith.moments.HourHasPassed
- equals(Object) - Method in class org.springframework.modulith.moments.MonthHasPassed
- equals(Object) - Method in class org.springframework.modulith.moments.QuarterHasPassed
- equals(Object) - Method in class org.springframework.modulith.moments.ShiftedQuarter
- equals(Object) - Method in class org.springframework.modulith.moments.WeekHasPassed
- equals(Object) - Method in class org.springframework.modulith.moments.YearHasPassed
- everyHour() - Method in class org.springframework.modulith.moments.support.Moments
-
Triggers event publication every hour.
- everyMidnight() - Method in class org.springframework.modulith.moments.support.Moments
-
Triggers event publication every midnight.
G
- getDate() - Method in class org.springframework.modulith.moments.DayHasPassed
-
The day that has just passed.
- getEnd() - Method in enum class org.springframework.modulith.moments.Quarter
-
Returns the end
MonthDay. - getEnd() - Method in class org.springframework.modulith.moments.ShiftedQuarter
- getEndDate() - Method in class org.springframework.modulith.moments.QuarterHasPassed
-
Returns the date of the last day of the quarter that has just passed.
- getEndDate() - Method in class org.springframework.modulith.moments.WeekHasPassed
-
Returns the end date of the week that has passed.
- getEndDate() - Method in class org.springframework.modulith.moments.YearHasPassed
-
Returns the end date of the year passed.
- getEndDate(Year) - Method in class org.springframework.modulith.moments.ShiftedQuarter
-
Returns the end date of the
ShiftedQuarterfor the givenYear. - getLocale() - Method in class org.springframework.modulith.moments.support.MomentsProperties
-
The
Localeto use when determining week boundaries. - getLocale() - Method in class org.springframework.modulith.moments.WeekHasPassed
- getMonth() - Method in class org.springframework.modulith.moments.MonthHasPassed
-
The month that has just passed.
- getQuarter() - Method in class org.springframework.modulith.moments.ShiftedQuarter
-
Returns the logical
Quarter. - getShiftedQuarter(LocalDate) - Method in class org.springframework.modulith.moments.support.MomentsProperties
-
Returns the
ShiftedQuarterfor the given reference date. - getStart() - Method in enum class org.springframework.modulith.moments.Quarter
-
Returns the start
MonthDay. - getStart() - Method in class org.springframework.modulith.moments.ShiftedQuarter
- getStartDate() - Method in class org.springframework.modulith.moments.QuarterHasPassed
-
Returns the date of the first day of the quarter that has just passed.
- getStartDate() - Method in class org.springframework.modulith.moments.WeekHasPassed
-
Returns the start date of the week that has passed.
- getStartDate() - Method in class org.springframework.modulith.moments.YearHasPassed
-
Returns the start date of the year passed.
- getStartDate(Year) - Method in class org.springframework.modulith.moments.ShiftedQuarter
-
Returns the start date of the
ShiftedQuarterfor the givenYear. - getTime() - Method in class org.springframework.modulith.moments.HourHasPassed
-
The hour that has just passed.
- getWeek() - Method in class org.springframework.modulith.moments.WeekHasPassed
-
The
Localeto be used to calculate the start date of the week. - getYear() - Method in class org.springframework.modulith.moments.WeekHasPassed
-
The year of the week that has just passed.
- getYear() - Method in class org.springframework.modulith.moments.YearHasPassed
-
The
Yearthat has just passed. - getZoneId() - Method in class org.springframework.modulith.moments.support.MomentsProperties
-
The
ZoneIdto determine times which are attached to the events published.
H
- hashCode() - Method in class org.springframework.modulith.moments.DayHasPassed
- hashCode() - Method in class org.springframework.modulith.moments.HourHasPassed
- hashCode() - Method in class org.springframework.modulith.moments.MonthHasPassed
- hashCode() - Method in class org.springframework.modulith.moments.QuarterHasPassed
- hashCode() - Method in class org.springframework.modulith.moments.ShiftedQuarter
- hashCode() - Method in class org.springframework.modulith.moments.WeekHasPassed
- hashCode() - Method in class org.springframework.modulith.moments.YearHasPassed
- HourHasPassed - Class in org.springframework.modulith.moments
-
A
DomainEventpublished on each day. - HOURS - Enum constant in enum class org.springframework.modulith.moments.support.MomentsProperties.Granularity
-
Publish hourly events.
I
- instant() - Method in class org.springframework.modulith.moments.support.Moments
- instant() - Method in interface org.springframework.modulith.moments.support.Now
-
Returns the current Instant.
- isEnableTimeMachine() - Method in class org.springframework.modulith.moments.support.MomentsProperties
-
Whether to enable the
TimeMachine. - isHourly() - Method in class org.springframework.modulith.moments.support.MomentsProperties
-
Returns whether to create hourly events.
- isLastDay(LocalDate) - Method in class org.springframework.modulith.moments.ShiftedQuarter
-
Returns whether the given
LocalDateis the last day of theShiftedQuarter.
M
- moments(ObjectProvider<Clock>, ApplicationEventPublisher, MomentsProperties) - Method in class org.springframework.modulith.moments.autoconfigure.MomentsAutoConfiguration
- Moments - Class in org.springframework.modulith.moments.support
-
Core component to publish passage-of-time events.
- Moments(Clock, ApplicationEventPublisher, MomentsProperties) - Constructor for class org.springframework.modulith.moments.support.Moments
- MomentsAutoConfiguration - Class in org.springframework.modulith.moments.autoconfigure
-
Auto-configuration for
Moments. - MomentsAutoConfiguration() - Constructor for class org.springframework.modulith.moments.autoconfigure.MomentsAutoConfiguration
- MomentsProperties - Class in org.springframework.modulith.moments.support
-
Configuration properties for
Moments. - MomentsProperties.Granularity - Enum Class in org.springframework.modulith.moments.support
-
The granularity of events to publish.
- MonthHasPassed - Class in org.springframework.modulith.moments
-
A
DomainEventpublished on the last day of the month.
N
- next() - Method in enum class org.springframework.modulith.moments.Quarter
-
Returns the next logical
Quarter. - next() - Method in class org.springframework.modulith.moments.ShiftedQuarter
-
Returns the next
ShiftedQuarter. - now() - Method in class org.springframework.modulith.moments.support.Moments
- now() - Method in interface org.springframework.modulith.moments.support.Now
-
Returns the current point in time.
- now() - Method in class org.springframework.modulith.moments.support.TimeMachine
- Now - Interface in org.springframework.modulith.moments.support
-
An abstraction of the current point in time and today.
O
- of(int) - Static method in class org.springframework.modulith.moments.YearHasPassed
-
Creates a new
YearHasPassedevent for the given year. - of(LocalDate) - Static method in class org.springframework.modulith.moments.DayHasPassed
-
Creates a new
DayHasPassedfor the givenLocalDate. - of(LocalDateTime) - Static method in class org.springframework.modulith.moments.HourHasPassed
-
Creates a new
HourHasPassedfor the givenLocalDateTime. - of(Year) - Static method in class org.springframework.modulith.moments.YearHasPassed
-
Creates a new
YearHasPassedfor the givenYear. - of(YearMonth) - Static method in class org.springframework.modulith.moments.MonthHasPassed
-
Creates a new
MonthHasPassedfor the givenYearMonth. - of(Year, int) - Static method in class org.springframework.modulith.moments.WeekHasPassed
-
Creates a new
WeekHasPassedfor the givenYearand week of the year. - of(Year, int, Locale) - Static method in class org.springframework.modulith.moments.WeekHasPassed
- of(Year, Quarter) - Static method in class org.springframework.modulith.moments.QuarterHasPassed
- of(Year, Quarter, Month) - Static method in class org.springframework.modulith.moments.QuarterHasPassed
- of(Year, ShiftedQuarter) - Static method in class org.springframework.modulith.moments.QuarterHasPassed
- of(Quarter) - Static method in class org.springframework.modulith.moments.ShiftedQuarter
- of(Quarter, Month) - Static method in class org.springframework.modulith.moments.ShiftedQuarter
- org.springframework.modulith.moments - module org.springframework.modulith.moments
- org.springframework.modulith.moments - package org.springframework.modulith.moments
-
An Passage-of-Time events implementation.
- org.springframework.modulith.moments.autoconfigure - package org.springframework.modulith.moments.autoconfigure
-
Autoconfiguration for the
MomentsAPI. - org.springframework.modulith.moments.support - package org.springframework.modulith.moments.support
-
The
Momentsabstraction to integrate with Spring Framework's scheduling.
Q
- Q1 - Enum constant in enum class org.springframework.modulith.moments.Quarter
- Q2 - Enum constant in enum class org.springframework.modulith.moments.Quarter
- Q3 - Enum constant in enum class org.springframework.modulith.moments.Quarter
- Q4 - Enum constant in enum class org.springframework.modulith.moments.Quarter
- Quarter - Enum Class in org.springframework.modulith.moments
-
A logical
Quarterof the year. - QuarterHasPassed - Class in org.springframework.modulith.moments
-
A
DomainEventpublished once a quarter has passed.
S
- shiftBy(Duration) - Method in class org.springframework.modulith.moments.support.Moments
- shiftBy(Duration) - Method in class org.springframework.modulith.moments.support.TimeMachine
- ShiftedQuarter - Class in org.springframework.modulith.moments
-
A quarter that can be shifted to start at a configurable
Month.
T
- timeMachine(ObjectProvider<Clock>, ApplicationEventPublisher, MomentsProperties) - Method in class org.springframework.modulith.moments.autoconfigure.MomentsAutoConfiguration
- TimeMachine - Class in org.springframework.modulith.moments.support
-
Extension of
Momentsto publicly expose methods to shift time. - TimeMachine(Clock, ApplicationEventPublisher, MomentsProperties) - Constructor for class org.springframework.modulith.moments.support.TimeMachine
- today() - Method in class org.springframework.modulith.moments.support.Moments
- today() - Method in interface org.springframework.modulith.moments.support.Now
-
Returns the current date.
V
- valueOf(String) - Static method in enum class org.springframework.modulith.moments.Quarter
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.springframework.modulith.moments.support.MomentsProperties.Granularity
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.springframework.modulith.moments.Quarter
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.springframework.modulith.moments.support.MomentsProperties.Granularity
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- WeekHasPassed - Class in org.springframework.modulith.moments
-
A
DomainEventpublished if a week has passed. - WeekHasPassed(Year, int, Locale) - Constructor for class org.springframework.modulith.moments.WeekHasPassed
- withGranularity(MomentsProperties.Granularity) - Method in class org.springframework.modulith.moments.support.MomentsProperties
- withLocale(Locale) - Method in class org.springframework.modulith.moments.support.MomentsProperties
- withZoneId(ZoneId) - Method in class org.springframework.modulith.moments.support.MomentsProperties
Y
- YearHasPassed - Class in org.springframework.modulith.moments
-
A
DomainEventpublished on the last day of the year.
All Classes and Interfaces|All Packages