Record Class InactiveTopic
java.lang.Object
java.lang.Record
pl.allegro.tech.hermes.management.domain.detection.InactiveTopic
-
Constructor Summary
ConstructorsConstructorDescriptionInactiveTopic(String qualifiedTopicName, long lastPublishedMessageTimestampMs, List<Long> notificationTimestampsMs, boolean whitelisted) Creates an instance of aInactiveTopicrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastPublishedMessageTimestampMsrecord component.Returns the value of thenotificationTimestampsMsrecord component.Returns the value of thequalifiedTopicNamerecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewhitelistedrecord component.
-
Constructor Details
-
InactiveTopic
public InactiveTopic(String qualifiedTopicName, long lastPublishedMessageTimestampMs, List<Long> notificationTimestampsMs, boolean whitelisted) Creates an instance of aInactiveTopicrecord class.- Parameters:
qualifiedTopicName- the value for thequalifiedTopicNamerecord componentlastPublishedMessageTimestampMs- the value for thelastPublishedMessageTimestampMsrecord componentnotificationTimestampsMs- the value for thenotificationTimestampsMsrecord componentwhitelisted- the value for thewhitelistedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
qualifiedTopicName
Returns the value of thequalifiedTopicNamerecord component.- Returns:
- the value of the
qualifiedTopicNamerecord component
-
lastPublishedMessageTimestampMs
public long lastPublishedMessageTimestampMs()Returns the value of thelastPublishedMessageTimestampMsrecord component.- Returns:
- the value of the
lastPublishedMessageTimestampMsrecord component
-
notificationTimestampsMs
Returns the value of thenotificationTimestampsMsrecord component.- Returns:
- the value of the
notificationTimestampsMsrecord component
-
whitelisted
public boolean whitelisted()Returns the value of thewhitelistedrecord component.- Returns:
- the value of the
whitelistedrecord component
-