Package ch.rswk.meta.engine
Record Class WatchdogService.WatchdogServiceCheckConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.WatchdogService.WatchdogServiceCheckConfig
- Enclosing class:
WatchdogService
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thealertsrecord component.The field for theengineIdsrecord component.private final intThe field for theretentionrecord component.private final @Nullable IntegerThe field for theschedulerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalerts()Returns the value of thealertsrecord component.Returns the value of theengineIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theretentionrecord component.@Nullable Integerschedule()Returns the value of theschedulerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
alerts
The field for thealertsrecord component. -
engineIds
The field for theengineIdsrecord component. -
retention
private final int retentionThe field for theretentionrecord component. -
schedule
The field for theschedulerecord component.
-
-
Constructor Details
-
WatchdogServiceCheckConfig
public WatchdogServiceCheckConfig(@Nullable Set<String> alerts, Set<String> engineIds, int retention, @Nullable Integer schedule) Creates an instance of aWatchdogServiceCheckConfigrecord class.- Parameters:
alerts- the value for thealertsrecord componentengineIds- the value for theengineIdsrecord componentretention- the value for theretentionrecord componentschedule- the value for theschedulerecord 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 '=='. -
alerts
Returns the value of thealertsrecord component.- Returns:
- the value of the
alertsrecord component
-
engineIds
Returns the value of theengineIdsrecord component.- Returns:
- the value of the
engineIdsrecord component
-
retention
public int retention()Returns the value of theretentionrecord component.- Returns:
- the value of the
retentionrecord component
-
schedule
Returns the value of theschedulerecord component.- Returns:
- the value of the
schedulerecord component
-