public class ExplicitInterposition
extends java.lang.Object
Constructor and Description |
---|
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(boolean remember)
Create a new instance.
|
ExplicitInterposition(org.omg.CosTransactions.Control action,
boolean remember)
Create a new instance and interpose with the specified transaction.
|
ExplicitInterposition(org.omg.CosTransactions.PropagationContext ctx,
boolean remember)
Create a new instance and interpose with the specified transaction.
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
void |
registerTransaction(org.omg.CosTransactions.Control action)
Perform interposition with the specified transaction.
|
void |
unregisterTransaction()
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!
|
public ExplicitInterposition()
public ExplicitInterposition(boolean remember)
public ExplicitInterposition(org.omg.CosTransactions.Control action, boolean remember) throws com.arjuna.ArjunaOTS.InterpositionFailed, org.omg.CORBA.SystemException
com.arjuna.ArjunaOTS.InterpositionFailed
org.omg.CORBA.SystemException
public ExplicitInterposition(org.omg.CosTransactions.PropagationContext ctx, boolean remember) throws com.arjuna.ArjunaOTS.InterpositionFailed, org.omg.CORBA.SystemException
com.arjuna.ArjunaOTS.InterpositionFailed
org.omg.CORBA.SystemException
public void finalize()
finalize
in class java.lang.Object
public final void registerTransaction(org.omg.CosTransactions.Control action) throws com.arjuna.ArjunaOTS.InterpositionFailed, org.omg.CORBA.SystemException
com.arjuna.ArjunaOTS.InterpositionFailed
org.omg.CORBA.SystemException
public void unregisterTransaction() throws org.omg.CORBA.SystemException
org.omg.CORBA.SystemException