Interface DestinationTopicProcessor
-
- All Known Implementing Classes:
DefaultDestinationTopicProcessor
public interface DestinationTopicProcessor
TheDestinationTopicProcessor
creates and registers theDestinationTopic
instances in the providedDestinationTopicProcessor.Context
, also providing callback interfaces to be called upon the context properties.- Since:
- 2.7
- Author:
- Tomaz Fernandes
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DestinationTopicProcessor.Context
-
Method Summary
All Methods Instance Methods Abstract 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>> topicsConsumer, 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.
-
-
-
Method Detail
-
processDestinationTopicProperties
void processDestinationTopicProperties(java.util.function.Consumer<DestinationTopic.Properties> destinationPropertiesProcessor, DestinationTopicProcessor.Context context)
Process the destination properties.- Parameters:
destinationPropertiesProcessor
- the processor.context
- the context.
-
processRegisteredDestinations
void processRegisteredDestinations(java.util.function.Consumer<java.util.Collection<java.lang.String>> topicsConsumer, DestinationTopicProcessor.Context context)
Process the registered destinations.- Parameters:
topicsConsumer
- the consumer.context
- the context.
-
registerDestinationTopic
void registerDestinationTopic(java.lang.String mainTopicName, java.lang.String destinationTopicName, DestinationTopic.Properties destinationTopicProperties, DestinationTopicProcessor.Context context)
Register the destination topic.- Parameters:
mainTopicName
- the main topic name.destinationTopicName
- the destination topic name.destinationTopicProperties
- the destination topic properties.context
- the context.
-
-