Record Class ApplicationRollbackPlan
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.ApplicationRollbackPlan
- Record Components:
from- current coordinateto- rollback target coordinatesupported- whether rollback can be performed by this implementationsteps- safe rollback steps
public record ApplicationRollbackPlan(ApplicationCoordinate from, ApplicationCoordinate to, boolean supported, List<String> steps)
extends Record
Immutable rollback plan metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationRollbackPlan(ApplicationCoordinate from, ApplicationCoordinate to, boolean supported, List<String> steps) Creates immutable rollback metadata. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.steps()Returns the value of thestepsrecord component.booleanReturns the value of thesupportedrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApplicationRollbackPlan
public ApplicationRollbackPlan(ApplicationCoordinate from, ApplicationCoordinate to, boolean supported, List<String> steps) Creates immutable rollback metadata.
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
from
-
to
-
supported
-
steps
-