Record Class ManagedPartitionClient.Group
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedPartitionClient.Group
- Record Components:
primary- authenticated default group endpointlocalities- finite host-approved same-group endpoint preferences, at most64
- Enclosing class:
ManagedPartitionClient
-
Constructor Summary
Constructors -
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 thelocalitiesrecord component.org.j7m.middleware.distributed.PartitionEndpointprimary()Returns the value of theprimaryrecord component.toString()Returns a fixed diagnostic without endpoints or credentials.
-
Constructor Details
-
Group
public Group(org.j7m.middleware.distributed.PartitionEndpoint primary, Map<String, org.j7m.middleware.distributed.PartitionEndpoint> localities) Snapshots endpoint references without opening connections.- Throws:
IllegalArgumentException- for invalid locality names or inventory capacityNullPointerException- for absent endpoints
-
-
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). -
-
localities
Returns the value of thelocalitiesrecord component.- Returns:
- the value of the
localitiesrecord component
-