public interface KafkaClientSupplier
KafkaClientSupplier
can be used to provide custom Kafka clients to a KafkaStreams
instance.Modifier and Type | Method and Description |
---|---|
default org.apache.kafka.clients.admin.Admin |
getAdmin(java.util.Map<java.lang.String,java.lang.Object> config)
Create an
Admin which is used for internal topic management. |
default org.apache.kafka.clients.admin.AdminClient |
getAdminClient(java.util.Map<java.lang.String,java.lang.Object> config)
Deprecated.
Not called by Kafka Streams, which now uses
getAdmin(java.util.Map<java.lang.String, java.lang.Object>) instead. |
org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> |
getConsumer(java.util.Map<java.lang.String,java.lang.Object> config)
Create a
Consumer which is used to read records of source topics. |
org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> |
getGlobalConsumer(java.util.Map<java.lang.String,java.lang.Object> config)
Create a
Consumer which is used to consume records for GlobalKTable . |
org.apache.kafka.clients.producer.Producer<byte[],byte[]> |
getProducer(java.util.Map<java.lang.String,java.lang.Object> config)
Create a
Producer which is used to write records to sink topics. |
org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> |
getRestoreConsumer(java.util.Map<java.lang.String,java.lang.Object> config)
Create a
Consumer which is used to read records to restore StateStore s. |
@Deprecated default org.apache.kafka.clients.admin.AdminClient getAdminClient(java.util.Map<java.lang.String,java.lang.Object> config)
getAdmin(java.util.Map<java.lang.String, java.lang.Object>)
instead.AdminClient
which is used for internal topic management.config
- Supplied by the Properties
given to the KafkaStreams
AdminClient
default org.apache.kafka.clients.admin.Admin getAdmin(java.util.Map<java.lang.String,java.lang.Object> config)
Admin
which is used for internal topic management.config
- Supplied by the Properties
given to the KafkaStreams
Admin
org.apache.kafka.clients.producer.Producer<byte[],byte[]> getProducer(java.util.Map<java.lang.String,java.lang.Object> config)
Producer
which is used to write records to sink topics.config
- producer config
which is supplied by the
Properties
given to the KafkaStreams
instanceorg.apache.kafka.clients.consumer.Consumer<byte[],byte[]> getConsumer(java.util.Map<java.lang.String,java.lang.Object> config)
Consumer
which is used to read records of source topics.config
- consumer config
which is
supplied by the Properties
given to the KafkaStreams
instanceorg.apache.kafka.clients.consumer.Consumer<byte[],byte[]> getRestoreConsumer(java.util.Map<java.lang.String,java.lang.Object> config)
Consumer
which is used to read records to restore StateStore
s.config
- restore consumer config
which is supplied
by the Properties
given to the KafkaStreams
org.apache.kafka.clients.consumer.Consumer<byte[],byte[]> getGlobalConsumer(java.util.Map<java.lang.String,java.lang.Object> config)
Consumer
which is used to consume records for GlobalKTable
.config
- global consumer config
which is supplied
by the Properties
given to the KafkaStreams