Package org.apache.kafka.streams
Interface KafkaClientSupplier
public interface KafkaClientSupplier
KafkaClientSupplier
can be used to provide custom Kafka clients to a KafkaStreams
instance.-
Method Summary
Modifier and TypeMethodDescriptiondefault Admin
Create anAdmin
which is used for internal topic management.Consumer<byte[],
byte[]> getConsumer
(Map<String, Object> config) Create aConsumer
which is used to read records of source topics.Consumer<byte[],
byte[]> getGlobalConsumer
(Map<String, Object> config) Create aConsumer
which is used to consume records forGlobalKTable
.Producer<byte[],
byte[]> getProducer
(Map<String, Object> config) Create aProducer
which is used to write records to sink topics.Consumer<byte[],
byte[]> getRestoreConsumer
(Map<String, Object> config) Create aConsumer
which is used to read records to restoreStateStore
s.
-
Method Details
-
getAdmin
Create anAdmin
which is used for internal topic management.- Parameters:
config
- Supplied by theProperties
given to theKafkaStreams
- Returns:
- an instance of
Admin
-
getProducer
Create aProducer
which is used to write records to sink topics.- Parameters:
config
-producer config
which is supplied by theProperties
given to theKafkaStreams
instance- Returns:
- an instance of Kafka producer
-
getConsumer
Create aConsumer
which is used to read records of source topics.- Parameters:
config
-consumer config
which is supplied by theProperties
given to theKafkaStreams
instance- Returns:
- an instance of Kafka consumer
-
getRestoreConsumer
Create aConsumer
which is used to read records to restoreStateStore
s.- Parameters:
config
-restore consumer config
which is supplied by theProperties
given to theKafkaStreams
- Returns:
- an instance of Kafka consumer
-
getGlobalConsumer
Create aConsumer
which is used to consume records forGlobalKTable
.- Parameters:
config
-global consumer config
which is supplied by theProperties
given to theKafkaStreams
- Returns:
- an instance of Kafka consumer
-