public class KafkaStreamsBindingInformationCatalogue extends Object
StreamsBuilderFactoryBean
and StreamsConfig associated with various
StreamListener methods in the
ApplicationContext.| Constructor and Description |
|---|
KafkaStreamsBindingInformationCatalogue() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDlqProducerFactory(org.springframework.kafka.config.StreamsBuilderFactoryBean streamsBuilderFactoryBean,
org.springframework.kafka.core.ProducerFactory<byte[],byte[]> producerFactory) |
void |
addPreviousKafkaStreamsForApplicationId(String applicationId,
org.apache.kafka.streams.KafkaStreams kafkaStreams)
Caching the previous KafkaStreams for the applicaiton.id when binding is stopped through actuator.
|
Map<org.springframework.kafka.config.StreamsBuilderFactoryBean,List<ConsumerProperties>> |
getConsumerPropertiesPerSbfb() |
List<org.springframework.kafka.core.ProducerFactory<byte[],byte[]>> |
getDlqProducerFactories() |
List<org.springframework.kafka.core.ProducerFactory<byte[],byte[]>> |
getDlqProducerFactory(org.springframework.kafka.config.StreamsBuilderFactoryBean streamsBuilderFactoryBean) |
Map<String,org.apache.kafka.streams.KafkaStreams> |
getStoppedKafkaStreams()
Get all stopped KafkaStreams objects through actuator binding stop.
|
void |
removePreviousKafkaStreamsForApplicationId(String applicationId)
Remove the previously cached KafkaStreams object.
|
public KafkaStreamsBindingInformationCatalogue()
public Map<org.springframework.kafka.config.StreamsBuilderFactoryBean,List<ConsumerProperties>> getConsumerPropertiesPerSbfb()
public List<org.springframework.kafka.core.ProducerFactory<byte[],byte[]>> getDlqProducerFactories()
public List<org.springframework.kafka.core.ProducerFactory<byte[],byte[]>> getDlqProducerFactory(org.springframework.kafka.config.StreamsBuilderFactoryBean streamsBuilderFactoryBean)
public void addDlqProducerFactory(org.springframework.kafka.config.StreamsBuilderFactoryBean streamsBuilderFactoryBean,
org.springframework.kafka.core.ProducerFactory<byte[],byte[]> producerFactory)
public void addPreviousKafkaStreamsForApplicationId(String applicationId, org.apache.kafka.streams.KafkaStreams kafkaStreams)
applicationId - application.idkafkaStreams - KafkaStreams objectpublic void removePreviousKafkaStreamsForApplicationId(String applicationId)
applicationId - application.idCopyright © 2022 Pivotal Software, Inc.. All rights reserved.