Class XARequestProcessor
- java.lang.Object
-
- net.sf.ehcache.transaction.xa.processor.XARequestProcessor
-
public class XARequestProcessor extends java.lang.ObjectDefault implementation for XARequestProcessor. 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
-
-
Constructor Summary
Constructors Constructor Description XARequestProcessor(EhcacheXAResourceImpl resourceImpl)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intprocess(XARequest request)Process a XARequeststatic voidshutdown()Release resources shared by all XARequestProcessors
-
-
-
Constructor Detail
-
XARequestProcessor
public XARequestProcessor(EhcacheXAResourceImpl resourceImpl)
Constructor- Parameters:
resourceImpl- The EhcacheXAResourceImpl instance this processor will perform against
-
-
Method Detail
-
shutdown
public static void shutdown()
Release resources shared by all XARequestProcessors
-
process
public int process(XARequest request) throws javax.transaction.xa.XAException
Process a XARequest- Parameters:
request- the XARequest- Returns:
- the XAResource response code
- Throws:
javax.transaction.xa.XAException- the XAException thrown by the XAResource
-
-