Package com.evolveum.midpoint.task.api
Record Class TaskRunResult.TaskRestartInstruction
java.lang.Object
java.lang.Record
com.evolveum.midpoint.task.api.TaskRunResult.TaskRestartInstruction
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TaskRunResult
public static record TaskRunResult.TaskRestartInstruction(long delayMillis)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTaskRestartInstruction(long delayMillis) Creates an instance of aTaskRestartInstructionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedelayMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaskRestartInstruction
public TaskRestartInstruction(long delayMillis) Creates an instance of aTaskRestartInstructionrecord class.- Parameters:
delayMillis- the value for thedelayMillisrecord 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. All components in this record class are compared with '=='. -
delayMillis
public long delayMillis()Returns the value of thedelayMillisrecord component.- Returns:
- the value of the
delayMillisrecord component
-