Record Class PartitionDetector.PartitionStatus.FullPartition
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionDetector.PartitionStatus.FullPartition
- Record Components:
suspectedNodes- nodes in the unreachable partition
- All Implemented Interfaces:
PartitionDetector.PartitionStatus
- Enclosing interface:
PartitionDetector.PartitionStatus
public static record PartitionDetector.PartitionStatus.FullPartition(Set<String> suspectedNodes)
extends Record
implements PartitionDetector.PartitionStatus
Full partition: complete network split with clear majority/minority.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PartitionDetector.PartitionStatus
PartitionDetector.PartitionStatus.FullPartition, PartitionDetector.PartitionStatus.NoPartition, PartitionDetector.PartitionStatus.PartialPartition -
Constructor Summary
ConstructorsConstructorDescriptionFullPartition(Set<String> suspectedNodes) Creates an instance of aFullPartitionrecord 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 thesuspectedNodesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
FullPartition
Creates an instance of aFullPartitionrecord class.- Parameters:
suspectedNodes- the value for thesuspectedNodesrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
suspectedNodes
Returns the value of thesuspectedNodesrecord component.- Returns:
- the value of the
suspectedNodesrecord component
-