xaRequestProcessor.
| Modifier and Type | Class and Description |
|---|---|
| private static class | XARequestProcessor.XARequestCallable
Class to furnish |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private final EhcacheXAResourceImpl | |
| private static volatile XAThreadPool |
| Access | Constructor and Description |
|---|---|
| public | XARequestProcessor(EhcacheXAResourceImpl
The EhcacheXAResourceImpl instance this processor will perform against resourceImpl)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| private void | cleanupThread(Xid
The Xid of the Transaction xid)Removes the ExecutorService from the map and shuts it down |
| private XAThreadPool. | Returns: the ExecutorService for that TransactionThe Xid of the Transaction xid)Gets the executor service for a Transaction, either by creating a new one if none exists, or returning the existing one |
| public int | |
| public static void |
| executorMap | back to summary |
|---|---|
| private final ConcurrentMap<Xid, XAThreadPool. | |
| resourceImpl | back to summary |
|---|---|
| private final EhcacheXAResourceImpl resourceImpl | |
| xaProcessorPool | back to summary |
|---|---|
| private static volatile XAThreadPool xaProcessorPool | |
| XARequestProcessor | back to summary |
|---|---|
| public XARequestProcessor(EhcacheXAResourceImpl resourceImpl) Constructor
| |
| cleanupThread | back to summary |
|---|---|
| private void cleanupThread(Xid xid) Removes the ExecutorService from the map and shuts it down
| |
| getOrCreateThread | back to summary |
|---|---|
| private XAThreadPool. Gets the executor service for a Transaction, either by creating a new one if none exists, or returning the existing one
| |
| process | back to summary |
|---|---|
| public int process(XARequest request) throws XAException Process a XARequest
| |
| shutdown | back to summary |
|---|---|
| public static void shutdown() Release resources shared by all XARequestProcessors | |
| Modifier and Type | Field and Description |
|---|---|
| private final XARequest | |
| private final EhcacheXAResourceImpl | |
| private final Xid |
| Access | Constructor and Description |
|---|---|
| public | XARequestCallable(EhcacheXAResourceImpl
the EhcacheXAResourceImpl this Request will be used for resourceImpl, XARequest the actual Request request, Xid xid)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public XARequestProcessor. | call()
Implements java. |
| request | back to summary |
|---|---|
| private final XARequest request | |
| resourceImpl | back to summary |
|---|---|
| private final EhcacheXAResourceImpl resourceImpl | |
| xid | back to summary |
|---|---|
| private final Xid xid | |
| XARequestCallable | back to summary |
|---|---|
| public XARequestCallable(EhcacheXAResourceImpl resourceImpl, XARequest request, Xid xid) Constructor
| |
| call | back to summary |
|---|---|
| public XARequestProcessor. Implements java. Doc from java. Computes a result, or throws an exception if unable to do so.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final XAException |
| Access | Constructor and Description |
|---|---|
| public | XAResponse(int
flags returned by the actual call against the XAResource flags, XAException Exception thrown by the call, otherwise null xaException)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public XAException | Returns: the exception, null if noneGets the Exception thrown by the actual call against the XAResource |
| flags | back to summary |
|---|---|
| private final int flags | |
| xaException | back to summary |
|---|---|
| private final XAException xaException | |
| XAResponse | back to summary |
|---|---|
| public XAResponse(int flags, XAException xaException) Constructor
| |
| getFlags | back to summary |
|---|---|
| public int getFlags() Gets the flags returned by the actual call against the XAResource
| |
| getXaException | back to summary |
|---|---|
| public XAException getXaException() Gets the Exception thrown by the actual call against the XAResource
| |