Package com.arjuna.ats.jts
Class ExplicitInterposition
java.lang.Object
com.arjuna.ats.jts.ExplicitInterposition
This class is responsible for doing interposition in the case where implicit
context propagation is not possible.
- Since:
- JTS 1.0.
- Version:
- $Id: ExplicitInterposition.java 2342 2006-03-30 13:06:17Z $
- Author:
- Mark Little (mark_little@hp.com)
-
Constructor Summary
ConstructorDescriptionCreate a new instance and remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished.ExplicitInterposition
(boolean remember) Create a new instance.ExplicitInterposition
(Control action, boolean remember) Create a new instance and interpose with the specified transaction.ExplicitInterposition
(PropagationContext ctx, boolean remember) Create a new instance and interpose with the specified transaction. -
Method Summary
Modifier and TypeMethodDescriptionvoid
finalize()
final void
registerTransaction
(Control action) Perform interposition with the specified transaction.void
We need this explicit method because we cannot rely upon the object "destructor" being called by the time the method which instantiated the interposition class ends!
-
Constructor Details
-
ExplicitInterposition
public ExplicitInterposition()Create a new instance and remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished. -
ExplicitInterposition
public ExplicitInterposition(boolean remember) Create a new instance. Depending upon the value of the boolean parameter, remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished. -
ExplicitInterposition
public ExplicitInterposition(Control action, boolean remember) throws InterpositionFailed, org.omg.CORBA.SystemException Create a new instance and interpose with the specified transaction. Depending upon the value of the boolean parameter, remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished.- Throws:
InterpositionFailed
org.omg.CORBA.SystemException
-
ExplicitInterposition
public ExplicitInterposition(PropagationContext ctx, boolean remember) throws InterpositionFailed, org.omg.CORBA.SystemException Create a new instance and interpose with the specified transaction. Depending upon the value of the boolean parameter, remember any current transaction that may be associated with the invoking thread so that it can be restored once interposition has finished.- Throws:
InterpositionFailed
org.omg.CORBA.SystemException
-
-
Method Details
-
finalize
public void finalize() -
registerTransaction
public final void registerTransaction(Control action) throws InterpositionFailed, org.omg.CORBA.SystemException Perform interposition with the specified transaction.- Throws:
InterpositionFailed
org.omg.CORBA.SystemException
-
unregisterTransaction
public void unregisterTransaction() throws org.omg.CORBA.SystemExceptionWe need this explicit method because we cannot rely upon the object "destructor" being called by the time the method which instantiated the interposition class ends!- Throws:
org.omg.CORBA.SystemException
-