Class DefaultDestinationTopicProcessor
java.lang.Object
org.springframework.kafka.retrytopic.DefaultDestinationTopicProcessor
- All Implemented Interfaces:
DestinationTopicProcessor
Default implementation of the
DestinationTopicProcessor interface.- Since:
- 2.7
- Author:
- Tomaz Fernandes
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.kafka.retrytopic.DestinationTopicProcessor
DestinationTopicProcessor.Context -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDestinationTopicProcessor(DestinationTopicResolver destinationTopicResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessDestinationTopicProperties(Consumer<DestinationTopic.Properties> destinationPropertiesProcessor, DestinationTopicProcessor.Context context) Process the destination properties.voidprocessRegisteredDestinations(Consumer<Collection<String>> topicsCallback, DestinationTopicProcessor.Context context) Process the registered destinations.voidregisterDestinationTopic(String mainTopicName, String destinationTopicName, DestinationTopic.Properties destinationTopicProperties, DestinationTopicProcessor.Context context) Register the destination topic.
-
Constructor Details
-
DefaultDestinationTopicProcessor
-
-
Method Details
-
processDestinationTopicProperties
public void processDestinationTopicProperties(Consumer<DestinationTopic.Properties> destinationPropertiesProcessor, DestinationTopicProcessor.Context context) Description copied from interface:DestinationTopicProcessorProcess the destination properties.- Specified by:
processDestinationTopicPropertiesin interfaceDestinationTopicProcessor- Parameters:
destinationPropertiesProcessor- the processor.context- the context.
-
registerDestinationTopic
public void registerDestinationTopic(String mainTopicName, String destinationTopicName, DestinationTopic.Properties destinationTopicProperties, DestinationTopicProcessor.Context context) Description copied from interface:DestinationTopicProcessorRegister the destination topic.- Specified by:
registerDestinationTopicin interfaceDestinationTopicProcessor- Parameters:
mainTopicName- the main topic name.destinationTopicName- the destination topic name.destinationTopicProperties- the destination topic properties.context- the context.
-
processRegisteredDestinations
public void processRegisteredDestinations(Consumer<Collection<String>> topicsCallback, DestinationTopicProcessor.Context context) Description copied from interface:DestinationTopicProcessorProcess the registered destinations.- Specified by:
processRegisteredDestinationsin interfaceDestinationTopicProcessor- Parameters:
topicsCallback- the consumer.context- the context.
-