confluentinc / kafka-rest

Confluent REST Proxy for Kafka
https://docs.confluent.io/current/kafka-rest/docs/index.html
Other
38 stars 643 forks source link

Make KafkaRestContext consistent wrt Producer & Consumer #1289

Closed VanamalaNarasimhaBhargav closed 1 month ago

VanamalaNarasimhaBhargav commented 1 month ago

This PR adds getConsumer() method in KafkaRestContext which makes it consistent wrt Producer & Consumer.

Adding getConsumer() method will help in fetching the consumer if it is needed from any of the implementations of KafaRestContext.

By default consumer is not expected from some of the implementations of KafkaRestContext so for such cases we just throw UnsupportedOperationException

cla-assistant[bot] commented 1 month ago

CLA assistant check
All committers have signed the CLA.

cla-assistant[bot] commented 1 month ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.