Package com.avoka.fc.core.stream.adapter
Class KafkaStreamDataAdapter<T>
java.lang.Object
com.avoka.fc.core.stream.adapter.KafkaStreamDataAdapter<T>
- Type Parameters:
T
- the type of data in the Kafka ConsumerRecords
Adapts Kafka ConsumerRecords to StreamData
This class adapts Kafka ConsumerRecords to a Generic StreamData instance
- Since:
- 24.4.0
-
Constructor Summary
ConstructorDescriptionKafkaStreamDataAdapter
(org.apache.kafka.clients.consumer.ConsumerRecords<String, T> consumerRecords) Constructs a KafkaStreamDataAdapter instance with the given ConsumerRecords. -
Method Summary
Modifier and TypeMethodDescriptionConverts Kafka ConsumerRecords to a StreamData instance.
-
Constructor Details
-
Method Details
-
streamData
Converts Kafka ConsumerRecords to a StreamData instance.- Returns:
- a StreamData instance containing the adapted stream data
-