Record Class ManagedResourceTransactionPolicy.Registration

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedResourceTransactionPolicy.Registration
Record Components:
coordinator - authorized durable coordinator endpoint
participants - at most64 stable ASCII IDs mapped to distinct independent authorized groups; IDs have at most64 characters
cleanupBudget - positive bounded abort/recovery cleanup duration at most30seconds
Enclosing class:
ManagedResourceTransactionPolicy

public static record ManagedResourceTransactionPolicy.Registration(org.j7m.middleware.distributed.ResourceEndpoint coordinator, Map<String, org.j7m.middleware.distributed.ResourceEndpoint> participants, Duration cleanupBudget) extends Record
Borrowed finite participating resource configuration.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Registration(org.j7m.middleware.distributed.ResourceEndpoint coordinator, Map<String, org.j7m.middleware.distributed.ResourceEndpoint> participants, Duration cleanupBudget)
    Copies and validates capabilities without network operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the cleanupBudget record component.
    org.j7m.middleware.distributed.ResourceEndpoint
    Returns the value of the coordinator record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Map<String, org.j7m.middleware.distributed.ResourceEndpoint>
    Returns the value of the participants record component.
    Returns only the finite participant count, never endpoint/factory diagnostics.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Registration

      public Registration(org.j7m.middleware.distributed.ResourceEndpoint coordinator, Map<String, org.j7m.middleware.distributed.ResourceEndpoint> participants, Duration cleanupBudget)
      Copies and validates capabilities without network operations.
  • Method Details

    • toString

      public String toString()
      Returns only the finite participant count, never endpoint/factory diagnostics.
      Specified by:
      toString in class Record
      Returns:
      credential-free registration description
    • 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.
    • coordinator

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

      public Map<String, org.j7m.middleware.distributed.ResourceEndpoint> participants()
      Returns the value of the participants record component.
      Returns:
      the value of the participants record component
    • cleanupBudget

      public Duration cleanupBudget()
      Returns the value of the cleanupBudget record component.
      Returns:
      the value of the cleanupBudget record component