Record Class ActivityRunResult.RestartRequestingInformation
java.lang.Object
java.lang.Record
com.evolveum.midpoint.repo.common.activity.run.ActivityRunResult.RestartRequestingInformation
- Enclosing class:
- ActivityRunResult
public static record ActivityRunResult.RestartRequestingInformation(@NotNull RestartActivityPolicyActionType restartAction, int executionAttempt)
extends Record
Details for
ActivityRunResult.runResultStatus being ActivityRunResultStatus.RESTART_REQUESTED.-
Constructor Summary
ConstructorsConstructorDescriptionRestartRequestingInformation(@NotNull RestartActivityPolicyActionType restartAction, int executionAttempt) Creates an instance of aRestartRequestingInformationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of theexecutionAttemptrecord component.final inthashCode()Returns a hash code value for this object.@NotNull RestartActivityPolicyActionTypeReturns the value of therestartActionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RestartRequestingInformation
public RestartRequestingInformation(@NotNull @NotNull RestartActivityPolicyActionType restartAction, int executionAttempt) Creates an instance of aRestartRequestingInformationrecord class.- Parameters:
restartAction- the value for therestartActionrecord componentexecutionAttempt- the value for theexecutionAttemptrecord 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 '=='. -
restartAction
Returns the value of therestartActionrecord component.- Returns:
- the value of the
restartActionrecord component
-
executionAttempt
public int executionAttempt()Returns the value of theexecutionAttemptrecord component.- Returns:
- the value of the
executionAttemptrecord component
-