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, Gary Russell
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.kafka.retrytopic.DestinationTopicProcessor
DestinationTopicProcessor.Context
-
Constructor Summary
ConstructorDescriptionDefaultDestinationTopicProcessor
(DestinationTopicResolver destinationTopicResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processDestinationTopicProperties
(Consumer<DestinationTopic.Properties> destinationPropertiesProcessor, DestinationTopicProcessor.Context context) Process the destination properties.void
processRegisteredDestinations
(Consumer<Collection<String>> topicsCallback, DestinationTopicProcessor.Context context) Process the registered destinations.void
registerDestinationTopic
(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:DestinationTopicProcessor
Process the destination properties.- Specified by:
processDestinationTopicProperties
in 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:DestinationTopicProcessor
Register the destination topic.- Specified by:
registerDestinationTopic
in 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:DestinationTopicProcessor
Process the registered destinations.- Specified by:
processRegisteredDestinations
in interfaceDestinationTopicProcessor
- Parameters:
topicsCallback
- the consumer.context
- the context.
-