public interface EhcacheXAResource extends XAResource
Ehcache
instance.TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
Modifier and Type | Method and Description |
---|---|
void |
addTwoPcExecutionListener(XAExecutionListener listener)
Add a listener which will be called back according to the 2PC lifecycle
|
XATransactionContext |
createTransactionContext()
Obtain the already associated
XATransactionContext with the current Transaction,
or create a new one should none be there yet. |
String |
getCacheName()
Getter to the name of the cache wrapped by this XAResource
|
XATransactionContext |
getCurrentTransactionContext()
Gets the current
XATransactionContext associated with this resource |
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start
void addTwoPcExecutionListener(XAExecutionListener listener)
listener
- the XAExecutionListenerString getCacheName()
Ehcache.getName()
valueXATransactionContext createTransactionContext() throws SystemException, RollbackException
XATransactionContext
with the current Transaction,
or create a new one should none be there yet.XATransactionContext
SystemException
- Thrown if the associated transaction manager encounters an unexpected error condition.RollbackException
- Thrown if the resource has to be enlisted with the transaction, while it is marked for rollback only.XATransactionContext getCurrentTransactionContext()
XATransactionContext
associated with this resourceXATransactionContext
, or null if noneCopyright © 2003–2016 Terracotta, Inc.. All rights reserved.