Record Class ManagedOwnershipBackend.PartitionGroup
java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedOwnershipBackend.PartitionGroup
- Record Components:
resource- fixed group's authorized map/lease read facadepartition- same group's authorized epoch-aware command/query facade
- Enclosing class:
ManagedOwnershipBackend
public static record ManagedOwnershipBackend.PartitionGroup(org.j7m.middleware.distributed.ResourceEndpoint resource, org.j7m.middleware.distributed.PartitionEndpoint partition)
extends Record
Borrowed views of the same physical partition-wrapped resource and authorized scope.
The host must configure this pair correctly. A newly generated private owner identity plus
exact result version/fence checks reject a mismatched lease view before application entry.
-
Constructor Summary
ConstructorsConstructorDescriptionPartitionGroup(org.j7m.middleware.distributed.ResourceEndpoint resource, org.j7m.middleware.distributed.PartitionEndpoint partition) Requires both borrowed concrete capability views. -
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.org.j7m.middleware.distributed.PartitionEndpointReturns the value of thepartitionrecord component.org.j7m.middleware.distributed.ResourceEndpointresource()Returns the value of theresourcerecord component.toString()Omits endpoint and credential data.
-
Constructor Details
-
PartitionGroup
public PartitionGroup(org.j7m.middleware.distributed.ResourceEndpoint resource, org.j7m.middleware.distributed.PartitionEndpoint partition) Requires both borrowed concrete capability views.- Parameters:
resource- fixed lease-read endpointpartition- same resource's epoch-aware endpoint- Throws:
NullPointerException- for null input
-
-
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). -
resource
-
partition
-