Interface DestinationTopicResolver
-
- All Superinterfaces:
DestinationTopicContainer
- All Known Implementing Classes:
DefaultDestinationTopicResolver
public interface DestinationTopicResolver extends DestinationTopicContainer
Provides methods for resolving the destination to which a message that failed to be processed should be forwarded to.- Since:
- 2.7
- Author:
- Tomaz Fernandes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DestinationTopic
resolveDestinationTopic(java.lang.String topic, java.lang.Integer attempt, java.lang.Exception e, long originalTimestamp)
Resolves the destination topic for the failed message.-
Methods inherited from interface org.springframework.kafka.retrytopic.DestinationTopicContainer
addDestinationTopics, getDestinationTopicByName
-
-
-
-
Method Detail
-
resolveDestinationTopic
DestinationTopic resolveDestinationTopic(java.lang.String topic, java.lang.Integer attempt, java.lang.Exception e, long originalTimestamp)
Resolves the destination topic for the failed message.- Parameters:
topic
- the current topic for the message.attempt
- the number of processing attempts already made for that message.e
- the exception the message processing has thrownoriginalTimestamp
- the time when the first attempt to process the message threw an exception.- Returns:
- the
DestinationTopic
for the given parameters.
-
-