Class SuffixingRetryTopicNamesProviderFactory.SuffixingRetryTopicNamesProvider
- java.lang.Object
-
- org.springframework.kafka.retrytopic.SuffixingRetryTopicNamesProviderFactory.SuffixingRetryTopicNamesProvider
-
- All Implemented Interfaces:
RetryTopicNamesProviderFactory.RetryTopicNamesProvider
- Enclosing class:
- SuffixingRetryTopicNamesProviderFactory
public static class SuffixingRetryTopicNamesProviderFactory.SuffixingRetryTopicNamesProvider extends java.lang.Object implements RetryTopicNamesProviderFactory.RetryTopicNamesProvider
-
-
Constructor Summary
Constructors Constructor Description SuffixingRetryTopicNamesProvider(DestinationTopic.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClientIdPrefix(KafkaListenerEndpoint endpoint)Return the clientId prefix that will override the endpoint's clientId prefix.java.lang.StringgetEndpointId(KafkaListenerEndpoint endpoint)Return the endpoint id that will override the endpoint's current id.java.lang.StringgetGroup(KafkaListenerEndpoint endpoint)Return the group that will override the endpoint's group.java.lang.StringgetGroupId(KafkaListenerEndpoint endpoint)Return the groupId that will override the endpoint's groupId.java.lang.StringgetTopicName(java.lang.String topic)Return the tropic name that will override the base topic name.
-
-
-
Constructor Detail
-
SuffixingRetryTopicNamesProvider
public SuffixingRetryTopicNamesProvider(DestinationTopic.Properties properties)
-
-
Method Detail
-
getEndpointId
public java.lang.String getEndpointId(KafkaListenerEndpoint endpoint)
Description copied from interface:RetryTopicNamesProviderFactory.RetryTopicNamesProviderReturn the endpoint id that will override the endpoint's current id.- Specified by:
getEndpointIdin interfaceRetryTopicNamesProviderFactory.RetryTopicNamesProvider- Parameters:
endpoint- the endpoint to override- Returns:
- The endpoint id
-
getGroupId
public java.lang.String getGroupId(KafkaListenerEndpoint endpoint)
Description copied from interface:RetryTopicNamesProviderFactory.RetryTopicNamesProviderReturn the groupId that will override the endpoint's groupId.- Specified by:
getGroupIdin interfaceRetryTopicNamesProviderFactory.RetryTopicNamesProvider- Parameters:
endpoint- the endpoint to override- Returns:
- The groupId
-
getClientIdPrefix
public java.lang.String getClientIdPrefix(KafkaListenerEndpoint endpoint)
Description copied from interface:RetryTopicNamesProviderFactory.RetryTopicNamesProviderReturn the clientId prefix that will override the endpoint's clientId prefix.- Specified by:
getClientIdPrefixin interfaceRetryTopicNamesProviderFactory.RetryTopicNamesProvider- Parameters:
endpoint- the endpoint to override- Returns:
- The clientId prefix
-
getGroup
public java.lang.String getGroup(KafkaListenerEndpoint endpoint)
Description copied from interface:RetryTopicNamesProviderFactory.RetryTopicNamesProviderReturn the group that will override the endpoint's group.- Specified by:
getGroupin interfaceRetryTopicNamesProviderFactory.RetryTopicNamesProvider- Parameters:
endpoint- the endpoint to override- Returns:
- The clientId prefix
-
getTopicName
public java.lang.String getTopicName(java.lang.String topic)
Description copied from interface:RetryTopicNamesProviderFactory.RetryTopicNamesProviderReturn the tropic name that will override the base topic name.- Specified by:
getTopicNamein interfaceRetryTopicNamesProviderFactory.RetryTopicNamesProvider- Parameters:
topic- the base topic name- Returns:
- The topic name
-
-