Interface AbandonPolicy
public interface AbandonPolicy
A policy to decide whether an
EventPublication that failed processing should permanently be considered
EventPublication.Status.ABANDONED rather than being resubmitted again. Implementations decide on a
per-EventPublication basis, and can leave the decision to the framework-provided default (a configurable
number of resubmission attempts) for any publication they do not want to explicitly rule on.- Since:
- 2.2
- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe decision anAbandonPolicycan make for a particularEventPublication. -
Method Summary
Modifier and TypeMethodDescriptionshouldAbandon(EventPublication publication) Returns theAbandonPolicy.Decisionfor the givenEventPublication.
-
Method Details
-
shouldAbandon
Returns theAbandonPolicy.Decisionfor the givenEventPublication.- Parameters:
publication- must not be null.- Returns:
- will never be null.
-