net.sf.ehcache.transaction.xa
Class TransactionXARequestProcessor
java.lang.Object
net.sf.ehcache.transaction.xa.TransactionXARequestProcessor
- All Implemented Interfaces:
- XARequestProcessor
public class TransactionXARequestProcessor
- extends Object
- implements XARequestProcessor
Default implementation for TransactionXARequestProcessor.
This class ties an Xid to an Executor service. This is necessary so that
locking for 2pc by the same thread.
xaRequestProcessor.
- Author:
- Nabib El-Rahman
-

|
Method Summary |
int |
process(XARequest request)
Process the XAResource method to another thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionXARequestProcessor
public TransactionXARequestProcessor(EhcacheXAResourceImpl resourceImpl)
- Constructor
- Parameters:
resourceImpl - The EhcacheXAResourceImpl instance this processor will perform against
process
public int process(XARequest request)
throws XAException
- Process the XAResource method to another thread.
- Specified by:
process in interface XARequestProcessor
- Parameters:
request - the XARequest to be processed
- Returns:
- the potential XA flags for the XAResource to return to the TransactionManager
- Throws:
XAException - Depending on the XARequest type being executed, some XAException can happen
true