Record Class UnreachableClusterPolicy.Decision
java.lang.Object
java.lang.Record
org.openspaces.core.multicluster.internal.health.UnreachableClusterPolicy.Decision
- Record Components:
mark- the state to move the cluster to -ClusterHealth.State.SUSPECTmeans record it in the sliding window,ClusterHealth.State.UNHEALTHYmeans write it off nowunregister- whether the cluster leaves the topology altogetherpromote- whether the active role must move off this cluster
- Enclosing class:
UnreachableClusterPolicy
public static record UnreachableClusterPolicy.Decision(ClusterHealth.State mark, boolean unregister, boolean promote)
extends Record
The handling for one unreachable cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionDecision(ClusterHealth.State mark, boolean unregister, boolean promote) Creates an instance of aDecisionrecord 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.booleanWhether this decision writes the cluster off rather than merely counting the failure.mark()Returns the value of themarkrecord component.booleanpromote()Returns the value of thepromoterecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunregisterrecord component.
-
Constructor Details
-
Decision
Creates an instance of aDecisionrecord class.- Parameters:
mark- the value for themarkrecord componentunregister- the value for theunregisterrecord componentpromote- the value for thepromoterecord component
-
-
Method Details
-
isConclusive
public boolean isConclusive()Whether this decision writes the cluster off rather than merely counting the failure. -
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. -
mark
-
unregister
public boolean unregister()Returns the value of theunregisterrecord component.- Returns:
- the value of the
unregisterrecord component
-
promote
-