Record Class ValidationWorker
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.server.services.ValidationWorker
public record ValidationWorker(LocalMissionModelService missionModelService, int pollingPeriod)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValidationWorker(LocalMissionModelService missionModelService, int pollingPeriod) Creates an instance of aValidationWorkerrecord 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 themissionModelServicerecord component.intReturns the value of thepollingPeriodrecord component.final StringtoString()Returns a string representation of this record class.void
-
Constructor Details
-
ValidationWorker
Creates an instance of aValidationWorkerrecord class.- Parameters:
missionModelService- the value for themissionModelServicerecord componentpollingPeriod- the value for thepollingPeriodrecord component
-
-
Method Details
-
workerLoop
public void workerLoop() -
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 '=='. -
missionModelService
Returns the value of themissionModelServicerecord component.- Returns:
- the value of the
missionModelServicerecord component
-
pollingPeriod
public int pollingPeriod()Returns the value of thepollingPeriodrecord component.- Returns:
- the value of the
pollingPeriodrecord component
-