Class StalenessMonitorConfiguration
java.lang.Object
org.springframework.modulith.events.config.StalenessMonitorConfiguration
- All Implemented Interfaces:
SchedulingConfigurer
@AutoConfiguration
class StalenessMonitorConfiguration
extends Object
implements SchedulingConfigurer
Configures a fixed-delay task to mark stale in-flight event publications as failed according to the configuration in
StalenessProperties
.- Since:
- 2.0
- Author:
- Oliver Drotbohm
-
Constructor Summary
ConstructorsConstructorDescriptionStalenessMonitorConfiguration
(EventPublicationRegistry registry, StalenessProperties staleness) Creates a newStalenessMonitorConfiguration
for the givenEventPublicationRegistry
andStalenessProperties
. -
Method Summary
-
Constructor Details
-
StalenessMonitorConfiguration
StalenessMonitorConfiguration(EventPublicationRegistry registry, StalenessProperties staleness) Creates a newStalenessMonitorConfiguration
for the givenEventPublicationRegistry
andStalenessProperties
.- Parameters:
registry
- must not be null.staleness
- must not be null.
-
-
Method Details
-
configureTasks
- Specified by:
configureTasks
in interfaceSchedulingConfigurer
-