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 facade
partition - 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

    Constructors
    Constructor
    Description
    PartitionGroup(org.j7m.middleware.distributed.ResourceEndpoint resource, org.j7m.middleware.distributed.PartitionEndpoint partition)
    Requires both borrowed concrete capability views.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.j7m.middleware.distributed.PartitionEndpoint
    Returns the value of the partition record component.
    org.j7m.middleware.distributed.ResourceEndpoint
    Returns the value of the resource record component.
    Omits endpoint and credential data.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 endpoint
      partition - same resource's epoch-aware endpoint
      Throws:
      NullPointerException - for null input
  • Method Details

    • toString

      public String toString()
      Omits endpoint and credential data.
      Specified by:
      toString in class Record
      Returns:
      fixed safe label
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • resource

      public org.j7m.middleware.distributed.ResourceEndpoint resource()
      Returns the value of the resource record component.
      Returns:
      the value of the resource record component
    • partition

      public org.j7m.middleware.distributed.PartitionEndpoint partition()
      Returns the value of the partition record component.
      Returns:
      the value of the partition record component