Record Class EndpointCustomizer.TopicNamesHolder
java.lang.Object
java.lang.Record
org.springframework.kafka.retrytopic.EndpointCustomizer.TopicNamesHolder
- Enclosing interface:
- EndpointCustomizer<T extends MethodKafkaListenerEndpoint<?,
?>>
-
Constructor Summary
ConstructorsConstructorDescriptionTopicNamesHolder(String mainTopic, @Nullable String customizedTopic) Creates an instance of aTopicNamesHolderrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecustomizedTopicrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themainTopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TopicNamesHolder
Creates an instance of aTopicNamesHolderrecord class.- Parameters:
mainTopic- the value for themainTopicrecord componentcustomizedTopic- the value for thecustomizedTopicrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mainTopic
Returns the value of themainTopicrecord component.- Returns:
- the value of the
mainTopicrecord component
-
customizedTopic
Returns the value of thecustomizedTopicrecord component.- Returns:
- the value of the
customizedTopicrecord component
-