Class DefaultDestinationTopicProcessor
- java.lang.Object
-
- org.springframework.kafka.retrytopic.destinationtopic.DefaultDestinationTopicProcessor
-
- All Implemented Interfaces:
DestinationTopicProcessor
public class DefaultDestinationTopicProcessor extends java.lang.Object implements DestinationTopicProcessor
Default implementation of theDestinationTopicProcessorinterface.- Since:
- 2.7
- Author:
- Tomaz Fernandes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.kafka.retrytopic.destinationtopic.DestinationTopicProcessor
DestinationTopicProcessor.Context
-
-
Constructor Summary
Constructors Constructor Description DefaultDestinationTopicProcessor(DestinationTopicResolver destinationTopicResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessDestinationProperties(java.util.function.Consumer<DestinationTopic.Properties> destinationPropertiesProcessor, DestinationTopicProcessor.Context context)Process the destination properties.voidprocessRegisteredDestinations(java.util.function.Consumer<java.util.Collection<java.lang.String>> topicsCallback, DestinationTopicProcessor.Context context)Process the registered destinations.voidregisterDestinationTopic(java.lang.String mainTopicName, java.lang.String destinationTopicName, DestinationTopic.Properties destinationTopicProperties, DestinationTopicProcessor.Context context)Register the destination topic.
-
-
-
Constructor Detail
-
DefaultDestinationTopicProcessor
public DefaultDestinationTopicProcessor(DestinationTopicResolver destinationTopicResolver)
-
-
Method Detail
-
processDestinationProperties
public void processDestinationProperties(java.util.function.Consumer<DestinationTopic.Properties> destinationPropertiesProcessor, DestinationTopicProcessor.Context context)
Description copied from interface:DestinationTopicProcessorProcess the destination properties.- Specified by:
processDestinationPropertiesin interfaceDestinationTopicProcessor- Parameters:
destinationPropertiesProcessor- the processor.context- the context.
-
registerDestinationTopic
public void registerDestinationTopic(java.lang.String mainTopicName, java.lang.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(java.util.function.Consumer<java.util.Collection<java.lang.String>> topicsCallback, DestinationTopicProcessor.Context context)Description copied from interface:DestinationTopicProcessorProcess the registered destinations.- Specified by:
processRegisteredDestinationsin interfaceDestinationTopicProcessor- Parameters:
topicsCallback- the consumer.context- the context.
-
-