Class DefaultKafkaClientSupplier
- java.lang.Object
-
- org.apache.kafka.streams.processor.internals.DefaultKafkaClientSupplier
-
- All Implemented Interfaces:
KafkaClientSupplier
public class DefaultKafkaClientSupplier extends Object implements KafkaClientSupplier
-
-
Constructor Summary
Constructors Constructor Description DefaultKafkaClientSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Admin
getAdmin(Map<String,Object> config)
Create anAdmin
which is used for internal topic management.AdminClient
getAdminClient(Map<String,Object> config)
Deprecated.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 Detail
-
getAdminClient
@Deprecated public AdminClient getAdminClient(Map<String,Object> config)
Deprecated.Description copied from interface:KafkaClientSupplier
Create anAdminClient
which is used for internal topic management.- Specified by:
getAdminClient
in interfaceKafkaClientSupplier
- Parameters:
config
- Supplied by theProperties
given to theKafkaStreams
- Returns:
- an instance of
AdminClient
-
getAdmin
public Admin getAdmin(Map<String,Object> config)
Description copied from interface:KafkaClientSupplier
Create anAdmin
which is used for internal topic management.- Specified by:
getAdmin
in interfaceKafkaClientSupplier
- Parameters:
config
- Supplied by theProperties
given to theKafkaStreams
- Returns:
- an instance of
Admin
-
getProducer
public Producer<byte[],byte[]> getProducer(Map<String,Object> config)
Description copied from interface:KafkaClientSupplier
Create aProducer
which is used to write records to sink topics.- Specified by:
getProducer
in interfaceKafkaClientSupplier
- Parameters:
config
-producer config
which is supplied by theProperties
given to theKafkaStreams
instance- Returns:
- an instance of Kafka producer
-
getConsumer
public Consumer<byte[],byte[]> getConsumer(Map<String,Object> config)
Description copied from interface:KafkaClientSupplier
Create aConsumer
which is used to read records of source topics.- Specified by:
getConsumer
in interfaceKafkaClientSupplier
- Parameters:
config
-consumer config
which is supplied by theProperties
given to theKafkaStreams
instance- Returns:
- an instance of Kafka consumer
-
getRestoreConsumer
public Consumer<byte[],byte[]> getRestoreConsumer(Map<String,Object> config)
Description copied from interface:KafkaClientSupplier
Create aConsumer
which is used to read records to restoreStateStore
s.- Specified by:
getRestoreConsumer
in interfaceKafkaClientSupplier
- Parameters:
config
-restore consumer config
which is supplied by theProperties
given to theKafkaStreams
- Returns:
- an instance of Kafka consumer
-
getGlobalConsumer
public Consumer<byte[],byte[]> getGlobalConsumer(Map<String,Object> config)
Description copied from interface:KafkaClientSupplier
Create aConsumer
which is used to consume records forGlobalKTable
.- Specified by:
getGlobalConsumer
in interfaceKafkaClientSupplier
- Parameters:
config
-global consumer config
which is supplied by theProperties
given to theKafkaStreams
- Returns:
- an instance of Kafka consumer
-
-