Top Description Interfaces Classes Enums
[default module]

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: net.sf.ehcache.transaction.xa.EhcacheXAResourceImpl.

Interface Summary

Modifier and TypeInterface and Description
public interface
EhcacheXAResource

EhcacheXAResource represents an Ehcache instance.

public interface
XAExecutionListener

Listener interface which provides callback hooks for listening to the 2PC lifecycle

public interface
XidTransactionID

A special TransactionID using a XID internally

Class Summary

Modifier and TypeClass and Description
public class
EhcacheXAException

Small extension to the XAException defined in the JTA standard, so that the errorCode is provided when instantiating the Exception thrown

public class
EhcacheXAResourceImpl

The EhcacheXAResource implementation

public class
public class
OptimisticLockFailureException

This exception is used internally when an optimistic lock failed, ie: when the expected previous value is not found at commit time.

public class
SerializableXid

A serializable XID

public class
XATransactionContext

An XATransactionContext represents the data local to a Transaction that involves a transactional Cache.

public class
public class

Enum Summary

Modifier and TypeEnum and Description
public enum
XaCommitOutcome

The Enum XaCommitOutcome.

public enum
XaRecoveryOutcome

The Enum XaRecoveryOutcome.

public enum
XaRollbackOutcome

The Enum XaRollbackOutcome.