Class StalenessProperties
java.lang.Object
org.springframework.modulith.events.config.StalenessProperties
- All Implemented Interfaces:
Staleness
@ConfigurationProperties("spring.modulith.events.staleness")
public class StalenessProperties
extends Object
implements Staleness
Configuration properties to tweak the Spring Modulith event handling.
- Since:
- 2.0
- Author:
- Oliver Drotbohm
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStalenessProperties(@Nullable Duration published, @Nullable Duration processing, @Nullable Duration resubmission, @Nullable Duration checkIntervall) -
Method Summary
Modifier and TypeMethodDescription(package private) DurationgetStaleness(EventPublication.Status status) Returns theDurationafter whichEventPublications with a certainEventPublication.Statusare considered stale.(package private) boolean
-
Field Details
-
DEFAULTS
-
-
Constructor Details
-
StalenessProperties
@ConstructorBinding StalenessProperties(@Nullable Duration published, @Nullable Duration processing, @Nullable Duration resubmission, @Nullable Duration checkIntervall)
-
-
Method Details
-
monitorStaleness
boolean monitorStaleness() -
getCheckIntervall
Duration getCheckIntervall() -
getStaleness
Description copied from interface:StalenessReturns theDurationafter whichEventPublications with a certainEventPublication.Statusare considered stale.- Specified by:
getStalenessin interfaceStaleness- Parameters:
status- must not be null.- Returns:
- will never be null.
-