Interface ReceiverAcknowledgementStrategy
-
- All Known Implementing Classes:
MultipleReceiverAcknowledgementStrategy,OrderManagingReceiverAcknowledgementStrategy
public interface ReceiverAcknowledgementStrategyProvides implementation of how to convert Flux of Reactor Kafka ReceiverRecords in to Acknowledgeable Kafka-native ConsumerRecords
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAX_IN_FLIGHT_PER_SUBSCRIPTION_CONFIGSubscribers can control the max total number of "in-flight" (unacknowledged) Records emitted (with acknowledgement managed on a per-Topic-Partition basis).static StringMAX_IN_FLIGHT_PER_TOPIC_PARTITION_CONFIGDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
Function<? super org.reactivestreams.Publisher<reactor.kafka.receiver.ReceiverRecord<K,V>>,? extends org.reactivestreams.Publisher<com.expediagroup.rhapsody.api.Acknowledgeable<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>>>createRecordTransformer(Map<String,?> properties)static Optional<Long>loadMaxInFlightPerSubscription(Map<String,?> properties)
-
-
-
Field Detail
-
MAX_IN_FLIGHT_PER_TOPIC_PARTITION_CONFIG
@Deprecated static final String MAX_IN_FLIGHT_PER_TOPIC_PARTITION_CONFIG
Deprecated.- See Also:
- Constant Field Values
-
MAX_IN_FLIGHT_PER_SUBSCRIPTION_CONFIG
static final String MAX_IN_FLIGHT_PER_SUBSCRIPTION_CONFIG
Subscribers can control the max total number of "in-flight" (unacknowledged) Records emitted (with acknowledgement managed on a per-Topic-Partition basis). This can be helpful for controlling memory usage and "Quality of Service"- See Also:
- Constant Field Values
-
-
Method Detail
-
loadMaxInFlightPerSubscription
static Optional<Long> loadMaxInFlightPerSubscription(Map<String,?> properties)
-
createRecordTransformer
<K,V> Function<? super org.reactivestreams.Publisher<reactor.kafka.receiver.ReceiverRecord<K,V>>,? extends org.reactivestreams.Publisher<com.expediagroup.rhapsody.api.Acknowledgeable<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>>> createRecordTransformer(Map<String,?> properties)
-
-