public class DurableSubscriptionModelConfig extends Object
DurableSubscriptionModel.| Modifier and Type | Field and Description |
|---|---|
Predicate<io.cloudevents.CloudEvent> |
persistCloudEventPositionPredicate |
| Constructor and Description |
|---|
DurableSubscriptionModelConfig(int persistPositionForEveryNCloudEvent) |
DurableSubscriptionModelConfig(Predicate<io.cloudevents.CloudEvent> persistCloudEventPositionPredicate) |
public final Predicate<io.cloudevents.CloudEvent> persistCloudEventPositionPredicate
public DurableSubscriptionModelConfig(Predicate<io.cloudevents.CloudEvent> persistCloudEventPositionPredicate)
persistCloudEventPositionPredicate - A predicate that evaluates to true if the cloud event position should be persisted. See EveryN.
Supply a predicate that always returns false to never store the position.public DurableSubscriptionModelConfig(int persistPositionForEveryNCloudEvent)
persistPositionForEveryNCloudEvent - Store the cloud event position for every n cloud event.Copyright © 2022. All rights reserved.