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.String
getClientIdPrefix(KafkaListenerEndpoint endpoint)
Return the clientId prefix that will override the endpoint's clientId prefix.java.lang.String
getEndpointId(KafkaListenerEndpoint endpoint)
Return the endpoint id that will override the endpoint's current id.java.lang.String
getGroup(KafkaListenerEndpoint endpoint)
Return the group that will override the endpoint's group.java.lang.String
getGroupId(KafkaListenerEndpoint endpoint)
Return the groupId that will override the endpoint's groupId.java.lang.String
getTopicName(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.RetryTopicNamesProvider
Return the endpoint id that will override the endpoint's current id.- Specified by:
getEndpointId
in 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.RetryTopicNamesProvider
Return the groupId that will override the endpoint's groupId.- Specified by:
getGroupId
in interfaceRetryTopicNamesProviderFactory.RetryTopicNamesProvider
- Parameters:
endpoint
- the endpoint to override- Returns:
- The groupId
-
getClientIdPrefix
public java.lang.String getClientIdPrefix(KafkaListenerEndpoint endpoint)
Description copied from interface:RetryTopicNamesProviderFactory.RetryTopicNamesProvider
Return the clientId prefix that will override the endpoint's clientId prefix.- Specified by:
getClientIdPrefix
in 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.RetryTopicNamesProvider
Return the group that will override the endpoint's group.- Specified by:
getGroup
in 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.RetryTopicNamesProvider
Return the tropic name that will override the base topic name.- Specified by:
getTopicName
in interfaceRetryTopicNamesProviderFactory.RetryTopicNamesProvider
- Parameters:
topic
- the base topic name- Returns:
- The topic name
-
-