Class KafkaRecordStreamSubscription<K,V,T>

java.lang.Object
io.smallrye.reactive.messaging.kafka.impl.KafkaRecordStreamSubscription<K,V,T>
Type Parameters:
K - type of incoming record key
V - type of incoming record payload
T - type of the items to emit downstream
All Implemented Interfaces:
Flow.Subscription

public class KafkaRecordStreamSubscription<K,V,T> extends Object implements Flow.Subscription
A Flow.Subscription which, on request(long), polls ConsumerRecords from the given consumer client and emits records downstream.

It uses an internal queue to store records received but not yet emitted downstream. The given enqueue function can flatten the polled ConsumerRecords into individual records or enqueue it as-is.