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 Object
implements RetryTopicNamesProviderFactory.RetryTopicNamesProvider
- Author:
- Andrea Polci
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetClientIdPrefix(KafkaListenerEndpoint endpoint) Return the clientId prefix that will override the endpoint's clientId prefix.@Nullable StringgetEndpointId(KafkaListenerEndpoint endpoint) Return the endpoint id that will override the endpoint's current id.@Nullable StringgetGroup(KafkaListenerEndpoint endpoint) Return the group that will override the endpoint's group.@Nullable StringgetGroupId(KafkaListenerEndpoint endpoint) Return the groupId that will override the endpoint's groupId.@Nullable StringgetTopicName(String topic) Return the tropic name that will override the base topic name.
-
Constructor Details
-
SuffixingRetryTopicNamesProvider
-
-
Method Details
-
getEndpointId
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
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
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
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
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
-