Record Class ManagedJdbcTransactionPolicy.Registration

java.lang.Object
java.lang.Record
org.j7m.middleware.application.distributed.ManagedJdbcTransactionPolicy.Registration
Record Components:
connections - borrowed fresh-connection factory, never closed by the policy
cleanupBudget - positive cleanup budget at most30seconds; never authorizes a new commit
Enclosing class:
ManagedJdbcTransactionPolicy

public static record ManagedJdbcTransactionPolicy.Registration(org.j7m.middleware.integrations.JdbcDelivery.Connections connections, Duration cleanupBudget) extends Record
Qualified H2 TCP connection ownership configuration. The factory supplies a fresh independently owned autocommit connection. The supported profile is H2 TCP2.3.232 with SERIALIZABLE isolation; connection/socket timeouts remain host driver configuration. A noncooperative driver retains physical ownership until its operation exits.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Registration(org.j7m.middleware.integrations.JdbcDelivery.Connections connections, Duration cleanupBudget)
    Validates finite settings without opening a connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the cleanupBudget record component.
    org.j7m.middleware.integrations.JdbcDelivery.Connections
    Returns the value of the connections record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns a credential-free diagnostic form.

    Methods inherited from class Object

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

    • Registration

      public Registration(org.j7m.middleware.integrations.JdbcDelivery.Connections connections, Duration cleanupBudget)
      Validates finite settings without opening a connection.
  • Method Details

    • toString

      public String toString()
      Returns a credential-free diagnostic form.
      Specified by:
      toString in class Record
      Returns:
      fixed profile identity without factory/connection strings
    • 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.
    • connections

      public org.j7m.middleware.integrations.JdbcDelivery.Connections connections()
      Returns the value of the connections record component.
      Returns:
      the value of the connections record component
    • cleanupBudget

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