Class ResubmissionProperties
java.lang.Object
org.springframework.modulith.events.config.ResubmissionProperties
@ConfigurationProperties("spring.modulith.events.resubmission")
public class ResubmissionProperties
extends Object
Configuration properties to tweak event publication resubmission, including the framework-provided default
AbandonPolicy, applied via
AbandonPolicies; see
EventPublicationAutoConfiguration.abandonPolicies(org.springframework.beans.factory.ObjectProvider, ResubmissionProperties).- Since:
- 2.2
- Author:
- Oliver Drotbohm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanshouldAbandon(EventPublication publication) Returns whether the givenEventPublicationshould be abandoned according to the configuredabandonAfterAttemptsthreshold.
-
Constructor Details
-
ResubmissionProperties
-
-
Method Details
-
shouldAbandon
Returns whether the givenEventPublicationshould be abandoned according to the configuredabandonAfterAttemptsthreshold.- Parameters:
publication- must not be null.
-