Class CloudKafkaRestContext
java.lang.Object
io.confluent.kafkarest.auth.CloudKafkaRestContext
- All Implemented Interfaces:
io.confluent.kafkarest.KafkaRestContext
public class CloudKafkaRestContext
extends Object
implements io.confluent.kafkarest.KafkaRestContext
-
Constructor Summary
ConstructorsConstructorDescriptionCloudKafkaRestContext(CloudPrincipal principal, io.confluent.kafkarest.KafkaRestConfig config, RestRequestProxyProtocolInfo proxyProtocolInfo) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.clients.admin.AdmingetAdmin()io.confluent.kafkarest.KafkaRestConfigorg.apache.kafka.clients.consumer.Consumer<byte[], byte[]> getConsumer(Properties properties) io.confluent.kafkarest.v2.KafkaConsumerManagerorg.apache.kafka.clients.producer.Producer<byte[], byte[]> voidshutdown()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.kafkarest.KafkaRestContext
getSchemaRegistryClient
-
Constructor Details
-
CloudKafkaRestContext
public CloudKafkaRestContext(CloudPrincipal principal, io.confluent.kafkarest.KafkaRestConfig config, RestRequestProxyProtocolInfo proxyProtocolInfo)
-
-
Method Details
-
getConfig
public io.confluent.kafkarest.KafkaRestConfig getConfig()- Specified by:
getConfigin interfaceio.confluent.kafkarest.KafkaRestContext
-
getKafkaConsumerManager
public io.confluent.kafkarest.v2.KafkaConsumerManager getKafkaConsumerManager()- Specified by:
getKafkaConsumerManagerin interfaceio.confluent.kafkarest.KafkaRestContext
-
getAdmin
public org.apache.kafka.clients.admin.Admin getAdmin()- Specified by:
getAdminin interfaceio.confluent.kafkarest.KafkaRestContext
-
getAdminProperties
-
getProducerConfigs
-
getConsumerProperties
-
getProducerCacheKey
-
getProducer
public org.apache.kafka.clients.producer.Producer<byte[],byte[]> getProducer()- Specified by:
getProducerin interfaceio.confluent.kafkarest.KafkaRestContext
-
getConsumer
- Specified by:
getConsumerin interfaceio.confluent.kafkarest.KafkaRestContext
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceio.confluent.kafkarest.KafkaRestContext
-