|
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 ConcurrentMap<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(Object key,
Xid xid,
boolean readOnly)
Increment versioning information of a mutated and stored information to the store |
long |
checkout(Object key,
Xid xid)
Track a version for an element, potentially adding it to the store |
boolean |
valid(Object key,
long currentVersionNumber)
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 ConcurrentMap<Object,EhcacheXAStoreImpl.Version> versionStore
| Constructor Detail |
|---|
public EhcacheXAStoreImpl.VersionTable()
| Method Detail |
|---|
public boolean valid(Object key,
long currentVersionNumber)
key - the key to check forcurrentVersionNumber - the version checked out
public long checkout(Object key,
Xid xid)
key - the key matching the element in the storexid - the Xid of the Transaction
public void checkin(Object key,
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 | |||||||||