Class LocalCleanupSynchronization
java.lang.Object
com.arjuna.ats.internal.jta.resources.jts.LocalCleanupSynchronization
- All Implemented Interfaces:
SynchronizationRecord
,Comparable
This synchronization is responsible for removing the JTA transaction
from the internal table. We don't need one for the purely local JTA
implementation, since the transaction implementation will do this
itself. However, in the JTS implementation, where a subordinate JTA
transaction may be proxied in another JVM, we have to rely on the
synchronization to do the garbage collection, since that transaction
implementation won't be driven through commit or rollback - it'll go
through the 2PC methods at the JTS interposition hierarchy level.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
afterCompletion
(int status) status is ActionStatusboolean
int
get_uid()
boolean
-
Constructor Details
-
Method Details
-
beforeCompletion
public boolean beforeCompletion()- Specified by:
beforeCompletion
in interfaceSynchronizationRecord
-
afterCompletion
public boolean afterCompletion(int status) status is ActionStatus- Specified by:
afterCompletion
in interfaceSynchronizationRecord
-
isInterposed
public boolean isInterposed()- Specified by:
isInterposed
in interfaceSynchronizationRecord
-
get_uid
- Specified by:
get_uid
in interfaceSynchronizationRecord
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-