|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.transaction.xa.EhcacheXAStoreImpl.VersionTable
public static class EhcacheXAStoreImpl.VersionTable
A table containing element version information
Field Summary | |
---|---|
protected java.util.concurrent.ConcurrentMap<java.lang.Object,EhcacheXAStoreImpl.Version> |
versionStore
The data underlying structure for the version info for Key (where the version is the Long) |
Constructor Summary | |
---|---|
EhcacheXAStoreImpl.VersionTable()
|
Method Summary | |
---|---|
void |
checkin(java.lang.Object key,
javax.transaction.xa.Xid xid,
boolean readOnly)
Increment versioning information of a mutated and stored information to the store |
long |
checkout(java.lang.Object key,
javax.transaction.xa.Xid xid)
Track a version for an element, potentially adding it to the store |
boolean |
valid(java.lang.Object key,
long currentVersionNumber,
javax.transaction.xa.Xid xid)
Checks whether a version is still up to date |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.concurrent.ConcurrentMap<java.lang.Object,EhcacheXAStoreImpl.Version> versionStore
Constructor Detail |
---|
public EhcacheXAStoreImpl.VersionTable()
Method Detail |
---|
public boolean valid(java.lang.Object key, long currentVersionNumber, javax.transaction.xa.Xid xid)
key
- the key to check forcurrentVersionNumber
- the version checked out
public long checkout(java.lang.Object key, javax.transaction.xa.Xid xid)
key
- the key matching the element in the storexid
- the Xid of the Transaction
public void checkin(java.lang.Object key, javax.transaction.xa.Xid xid, boolean readOnly)
key
- the key matching the element in the storexid
- the Xid of the TransactionreadOnly
- whether the element was mutated in the Store
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |