Class DefaultDestinationTopicProcessor
- java.lang.Object
-
- org.springframework.kafka.retrytopic.DefaultDestinationTopicProcessor
-
- All Implemented Interfaces:
DestinationTopicProcessor
public class DefaultDestinationTopicProcessor extends java.lang.Object implements DestinationTopicProcessor
Default implementation of theDestinationTopicProcessor
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
Constructors Constructor Description DefaultDestinationTopicProcessor(DestinationTopicResolver destinationTopicResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processDestinationTopicProperties(java.util.function.Consumer<DestinationTopic.Properties> destinationPropertiesProcessor, DestinationTopicProcessor.Context context)
Process the destination properties.void
processRegisteredDestinations(java.util.function.Consumer<java.util.Collection<java.lang.String>> topicsCallback, DestinationTopicProcessor.Context context)
Process the registered destinations.void
registerDestinationTopic(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
-
processDestinationTopicProperties
public void processDestinationTopicProperties(java.util.function.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(java.lang.String mainTopicName, java.lang.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(java.util.function.Consumer<java.util.Collection<java.lang.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.
-
-