Package net.sf.ehcache.transaction.xa
This package contains the functionality to provide XA support to a transactional Cache.
As of now, only READ_COMMITED isolation level is provided. This is being handled by both
XATransactionContext (being the local transactional data) and
XATransactionStore (wrapping the underlying
Store instance and keeping the "in-transaction operations" on the cache in sync with
the XATransactionContext XA implementation.
It also contains Ehcache support for JTA XAResource: EhcacheXAResourceImpl.
-
Interface Summary Interface Description EhcacheXAResource EhcacheXAResource represents anEhcacheinstance.XAExecutionListener Listener interface which provides callback hooks for listening to the 2PC lifecycleXidTransactionID A special TransactionID using a XID internally -
Class Summary Class Description EhcacheXAResourceImpl The EhcacheXAResource implementationExpiredXidTransactionIDImpl SerializableXid A serializable XIDXATransactionContext An XATransactionContext represents the data local to a Transaction that involves a transactional Cache.XATransactionStore XidTransactionIDImpl -
Enum Summary Enum Description XaCommitOutcome The Enum XaCommitOutcome.XaRecoveryOutcome The Enum XaRecoveryOutcome.XaRollbackOutcome The Enum XaRollbackOutcome. -
Exception Summary Exception Description EhcacheXAException Small extension to the XAException defined in the JTA standard, so that the errorCode is provided when instantiating the Exception thrownOptimisticLockFailureException This exception is used internally when an optimistic lock failed, ie: when the expected previous value is not found at commit time.