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 policycleanupBudget- 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
ConstructorsConstructorDescriptionRegistration(org.j7m.middleware.integrations.JdbcDelivery.Connections connections, Duration cleanupBudget) Validates finite settings without opening a connection. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecleanupBudgetrecord component.org.j7m.middleware.integrations.JdbcDelivery.ConnectionsReturns the value of theconnectionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Returns a credential-free diagnostic form.
-
Constructor Details
-
Registration
public Registration(org.j7m.middleware.integrations.JdbcDelivery.Connections connections, Duration cleanupBudget) Validates finite settings without opening a connection.
-
-
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). -
connections
public org.j7m.middleware.integrations.JdbcDelivery.Connections connections()Returns the value of theconnectionsrecord component.- Returns:
- the value of the
connectionsrecord component
-
cleanupBudget
Returns the value of thecleanupBudgetrecord component.- Returns:
- the value of the
cleanupBudgetrecord component
-