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 Details

  • Method Details

    • shouldAbandon

      boolean shouldAbandon(EventPublication publication)
      Returns whether the given EventPublication should be abandoned according to the configured abandonAfterAttempts threshold.
      Parameters:
      publication - must not be null.