Class XARequestProcessor


  • public class XARequestProcessor
    extends java.lang.Object
    Default 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 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