Record Class InactiveTopicsDetectionProperties
java.lang.Object
java.lang.Record
pl.allegro.tech.hermes.management.config.detection.InactiveTopicsDetectionProperties
-
Constructor Summary
ConstructorsConstructorDescriptionInactiveTopicsDetectionProperties(Duration inactivityThreshold, Duration nextNotificationThreshold, Set<String> whitelistedQualifiedTopicNames, int notificationsHistoryLimit) Creates an instance of aInactiveTopicsDetectionPropertiesrecord 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.Returns the value of theinactivityThresholdrecord component.Returns the value of thenextNotificationThresholdrecord component.intReturns the value of thenotificationsHistoryLimitrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhitelistedQualifiedTopicNamesrecord component.
-
Constructor Details
-
InactiveTopicsDetectionProperties
public InactiveTopicsDetectionProperties(Duration inactivityThreshold, Duration nextNotificationThreshold, Set<String> whitelistedQualifiedTopicNames, int notificationsHistoryLimit) Creates an instance of aInactiveTopicsDetectionPropertiesrecord class.- Parameters:
inactivityThreshold- the value for theinactivityThresholdrecord componentnextNotificationThreshold- the value for thenextNotificationThresholdrecord componentwhitelistedQualifiedTopicNames- the value for thewhitelistedQualifiedTopicNamesrecord componentnotificationsHistoryLimit- the value for thenotificationsHistoryLimitrecord 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 '=='. -
inactivityThreshold
Returns the value of theinactivityThresholdrecord component.- Returns:
- the value of the
inactivityThresholdrecord component
-
nextNotificationThreshold
Returns the value of thenextNotificationThresholdrecord component.- Returns:
- the value of the
nextNotificationThresholdrecord component
-
whitelistedQualifiedTopicNames
Returns the value of thewhitelistedQualifiedTopicNamesrecord component.- Returns:
- the value of the
whitelistedQualifiedTopicNamesrecord component
-
notificationsHistoryLimit
public int notificationsHistoryLimit()Returns the value of thenotificationsHistoryLimitrecord component.- Returns:
- the value of the
notificationsHistoryLimitrecord component
-