Class ManagedJdbcTransactionPolicy
java.lang.Object
org.j7m.middleware.application.distributed.ManagedJdbcTransactionPolicy
- All Implemented Interfaces:
org.j7m.middleware.application.components.ManagedInvocationPolicy
public final class ManagedJdbcTransactionPolicy
extends Object
implements org.j7m.middleware.application.components.ManagedInvocationPolicy
Trusted same-invocation REQUIRED local H2 TCP transaction policy.
Exactly one fresh physical connection belongs to the outer invocation and remains owned through
actual tracked USER completion. Commit reply loss is UNKNOWN, not proof of rollback. This adapter
neither enlists a database in native resource 2PC nor provides automatic DB-plus-queue atomicity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordQualified H2 TCP connection ownership configuration.Nested classes/interfaces inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy
org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding, org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase, org.j7m.middleware.application.components.ManagedInvocationPolicy.Proceed -
Constructor Summary
ConstructorsConstructorDescriptionRegisters at most256 finite named local transaction policies. -
Method Summary
Modifier and TypeMethodDescriptionSet<Class<? extends Annotation>> Returns the precise annotation capability implemented by this host policy.org.j7m.middleware.application.components.ManagedInvocationPolicy.Bindingbind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) Binds immutable policy state; connection opening waits for actual admitted owned scope.org.j7m.middleware.application.components.ManagedInvocationPolicy.Phasephase()Returns the transaction phase inside durable replay and outside application work.voidvalidate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) Rejects unsupported profile/mixed protocol and live JDBC return contracts before constructors.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.j7m.middleware.application.components.ManagedInvocationPolicy
bindHosted, validateComponent, validateExposure, validateHosted, validateHostedExposure, validateHostedExposure
-
Constructor Details
-
ManagedJdbcTransactionPolicy
public ManagedJdbcTransactionPolicy(Map<String, ManagedJdbcTransactionPolicy.Registration> profiles) Registers at most256 finite named local transaction policies.- Parameters:
profiles- borrowed connection configurations- Throws:
IllegalArgumentException- for invalid profile names/capacity
-
-
Method Details
-
phase
public org.j7m.middleware.application.components.ManagedInvocationPolicy.Phase phase()Returns the transaction phase inside durable replay and outside application work.- Specified by:
phasein interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy- Returns:
- transaction phase
-
annotationTypes
Returns the precise annotation capability implemented by this host policy.- Specified by:
annotationTypesin interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy- Returns:
- local JDBC marker
-
validate
public void validate(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) Rejects unsupported profile/mixed protocol and live JDBC return contracts before constructors.- Specified by:
validatein interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy- Parameters:
contract- complete verified method identityimplementation- actual implementationbusinessInterface- declared public interface- Throws:
IllegalArgumentException- for unknown profile or unsupported shape
-
bind
public org.j7m.middleware.application.components.ManagedInvocationPolicy.Binding bind(org.j7m.middleware.application.api.ManagedServiceContract contract, Class<?> implementation, Class<?> businessInterface) Binds immutable policy state; connection opening waits for actual admitted owned scope.- Specified by:
bindin interfaceorg.j7m.middleware.application.components.ManagedInvocationPolicy- Parameters:
contract- complete method identityimplementation- actual implementationbusinessInterface- declared interface- Returns:
- revocable binding; closing never commits or deletes durable data
-