Record Class PartitionDetector.PartitionStatus.PartialPartition
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionDetector.PartitionStatus.PartialPartition
- Record Components:
suspectedNodes- nodes that are suspected failed or unreachable
- All Implemented Interfaces:
PartitionDetector.PartitionStatus
- Enclosing interface:
PartitionDetector.PartitionStatus
public static record PartitionDetector.PartitionStatus.PartialPartition(Set<String> suspectedNodes)
extends Record
implements PartitionDetector.PartitionStatus
Asymmetric partition detected: some nodes can reach others but not vice versa.
-
Nested Class Summary
Nested classes/interfaces inherited from interface PartitionDetector.PartitionStatus
PartitionDetector.PartitionStatus.FullPartition, PartitionDetector.PartitionStatus.NoPartition, PartitionDetector.PartitionStatus.PartialPartition -
Constructor Summary
ConstructorsConstructorDescriptionPartialPartition(Set<String> suspectedNodes) Creates an instance of aPartialPartitionrecord 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
-
PartialPartition
Creates an instance of aPartialPartitionrecord 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
-