|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EhcacheXAResource
EhcacheXAResource represents an Ehcache
instance.
It will provide the interface between the TransactionManager
and the XATransactionalStore
instance backing the transactional cache.
Field Summary |
---|
Fields inherited from interface javax.transaction.xa.XAResource |
---|
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
Method Summary | |
---|---|
void |
addTwoPcExecutionListener(TwoPcExecutionListener listener)
Add a listener which will be called back according to the 2PC lifecycle |
TransactionContext |
createTransactionContext()
Obtain the already associated TransactionContext with the current Transaction,
or create a new one should none be there yet. |
java.lang.String |
getCacheName()
Getter to the name of the cache wrapped by this XAResource |
TransactionContext |
getCurrentTransactionContext()
Gets the current TransactionContext associated with this resource |
Methods inherited from interface javax.transaction.xa.XAResource |
---|
commit, end, forget, getTransactionTimeout, isSameRM, prepare, recover, rollback, setTransactionTimeout, start |
Method Detail |
---|
void addTwoPcExecutionListener(TwoPcExecutionListener listener)
listener
- the TwoPcExecutionListenerjava.lang.String getCacheName()
Ehcache.getName()
valueTransactionContext createTransactionContext() throws javax.transaction.SystemException, javax.transaction.RollbackException
TransactionContext
with the current Transaction,
or create a new one should none be there yet.
TransactionContext
javax.transaction.SystemException
- Thrown if the associated transaction manager encounters an unexpected error condition.
javax.transaction.RollbackException
- Thrown if the resource has to be enlisted with the transaction, while it is marked for rollback only.TransactionContext getCurrentTransactionContext()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |