|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.transaction.xa.XATransactionContext
public class XATransactionContext
An XATransactionContext represents the data local to a Transaction that involves a transactional Cache.
It will queue operations (Commands
), filter read operations on the cache (as for
returning null on a get on a "to be removed" key).
Constructor Summary | |
---|---|
XATransactionContext(Store underlyingStore)
Constructor |
Method Summary | |
---|---|
void |
addCommand(Command command,
Element element)
Add a command to the current LocalTransactionContext |
Element |
get(Object key)
Filter to get operations on underlying Store. |
Collection |
getAddedKeys()
Queries the local tx context, whether the key is pending removal |
List<Command> |
getCommands()
All ordered pending commands |
Collection |
getRemovedKeys()
getter to all keys pending deletion from the store |
int |
getSizeModifier()
The underlying store's size modifier. |
boolean |
isRemoved(Object key)
Queries the local tx context, whether the key is pending removal |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XATransactionContext(Store underlyingStore)
underlyingStore
- the underlying storeMethod Detail |
---|
public void addCommand(Command command, Element element)
command
- Command to be deferredelement
- Element the command impacts, may be nullpublic List<Command> getCommands()
public Element get(Object key)
Should the key still be transaction local, or locally pending deletion
key
- the key
public boolean isRemoved(Object key)
key
- the key pending removal
public Collection getAddedKeys()
public Collection getRemovedKeys()
public int getSizeModifier()
Plus all pending put commands, and minus all pending removals (dependent on whether their in the underlying store)
Store.getSize()
public String toString()
toString
in class Object
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |