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 thealerts
record component.The field for theengineIds
record component.private final int
The field for theretention
record component.private final @Nullable Integer
The field for theschedule
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalerts()
Returns the value of thealerts
record component.Returns the value of theengineIds
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of theretention
record component.@Nullable Integer
schedule()
Returns the value of theschedule
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
alerts
The field for thealerts
record component. -
engineIds
The field for theengineIds
record component. -
retention
private final int retentionThe field for theretention
record component. -
schedule
The field for theschedule
record component.
-
-
Constructor Details
-
WatchdogServiceCheckConfig
public WatchdogServiceCheckConfig(@Nullable Set<String> alerts, Set<String> engineIds, int retention, @Nullable Integer schedule) Creates an instance of aWatchdogServiceCheckConfig
record class.- Parameters:
alerts
- the value for thealerts
record componentengineIds
- the value for theengineIds
record componentretention
- the value for theretention
record componentschedule
- the value for theschedule
record 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 thealerts
record component.- Returns:
- the value of the
alerts
record component
-
engineIds
Returns the value of theengineIds
record component.- Returns:
- the value of the
engineIds
record component
-
retention
public int retention()Returns the value of theretention
record component.- Returns:
- the value of the
retention
record component
-
schedule
Returns the value of theschedule
record component.- Returns:
- the value of the
schedule
record component
-