ehcache

net.sf.ehcache.transaction.xa.processor
Class XARequestProcessor

java.lang.Object
  extended by net.sf.ehcache.transaction.xa.processor.XARequestProcessor

public class XARequestProcessor
extends 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 Summary
XARequestProcessor(EhcacheXAResourceImpl resourceImpl)
          Constructor
 
Method Summary
 int process(XARequest request)
          Process a XARequest
static void shutdown()
          Release resources shared by all XARequestProcessors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 XAException
Process a XARequest

Parameters:
request - the XARequest
Returns:
the XAResource response code
Throws:
XAException - the XAException thrown by the XAResource

ehcache

Copyright 2001-2017, Terracotta, Inc.