|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.transaction.xa.XATransactionContext
public class XATransactionContext
XATransactionContext provides a READ_COMMITED transaction isolation to an EhcacheXAResource.
It uses an EhcacheXAStore to persist data as needed
| Constructor Summary | |
|---|---|
XATransactionContext(javax.transaction.xa.Xid xid,
EhcacheXAStore store)
|
|
| Method Summary | |
|---|---|
void |
addCommand(Command command,
Element element)
Add a command to the current TransactionContext |
Element |
get(java.lang.Object key)
Filter to get operations on underlying Store. |
java.util.Collection |
getAddedKeys()
getter to all keys pending addition to the store |
java.util.List<VersionAwareCommand> |
getCommands()
All ordered pending commands |
java.util.Collection |
getRemovedKeys()
getter to all keys pending deletion from the store |
int |
getSizeModifier()
The underlying store's size modifier. |
java.util.Set<java.lang.Object> |
getUpdatedKeys()
All keys to pending keys to update |
boolean |
isRemoved(java.lang.Object key)
Queries the local tx context, whether the key is pending removal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XATransactionContext(javax.transaction.xa.Xid xid,
EhcacheXAStore store)
xid - The Xid of the Transactionstore - The store associated with the this XATransactionContext| Method Detail |
|---|
public Element get(java.lang.Object key)
Should the key still be transaction local, or locally pending deletion
get in interface TransactionContextkey - the key
public boolean isRemoved(java.lang.Object key)
isRemoved in interface TransactionContextkey - the key pending removal
public java.util.Collection getAddedKeys()
getAddedKeys in interface TransactionContextpublic java.util.Collection getRemovedKeys()
getRemovedKeys in interface TransactionContext
public void addCommand(Command command,
Element element)
addCommand in interface TransactionContextcommand - Command to be deferredelement - Element the command impacts, may be nullpublic java.util.List<VersionAwareCommand> getCommands()
getCommands in interface TransactionContextpublic java.util.Set<java.lang.Object> getUpdatedKeys()
getUpdatedKeys in interface TransactionContextpublic int getSizeModifier()
Plus all pending put commands, and minus all pending removals (dependent on whether their in the underlying store)
getSizeModifier in interface TransactionContextStore.getSize()
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||