Record Class PulsarSpace.ConsumerCacheKey
java.lang.Object
java.lang.Record
io.nosqlbench.adapter.pulsar.PulsarSpace.ConsumerCacheKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsumerNamerecord 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 thesubscriptionNamerecord component.Returns the value of thetopicNameListrecord component.Returns the value of thetopicPatternrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsumerCacheKey
public ConsumerCacheKey(String consumerName, String subscriptionName, List<String> topicNameList, String topicPattern) Creates an instance of aConsumerCacheKeyrecord class.- Parameters:
consumerName- the value for theconsumerNamerecord componentsubscriptionName- the value for thesubscriptionNamerecord componenttopicNameList- the value for thetopicNameListrecord componenttopicPattern- the value for thetopicPatternrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
consumerName
Returns the value of theconsumerNamerecord component.- Returns:
- the value of the
consumerNamerecord component
-
subscriptionName
Returns the value of thesubscriptionNamerecord component.- Returns:
- the value of the
subscriptionNamerecord component
-
topicNameList
-
topicPattern
Returns the value of thetopicPatternrecord component.- Returns:
- the value of the
topicPatternrecord component
-