|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.cache.tangosol.hibernate.CoherenceCacheStrategy.Item
public static final class CoherenceCacheStrategy.Item
An item of cached data, timestamped with the time it was cached,.
CoherenceCacheStrategy
,
Serialized FormConstructor Summary | |
---|---|
CoherenceCacheStrategy.Item(Object value,
long currentTimestamp,
Object version)
|
Method Summary | |
---|---|
long |
getFreshTimestamp()
The timestamp on the cached data |
Object |
getValue()
The actual cached data |
boolean |
isGettable(long txTimestamp)
Is this item visible to the timestamped transaction? |
boolean |
isLock()
Not a lock! |
boolean |
isPuttable(long txTimestamp,
Object newVersion,
Comparator comparator)
Don't overwite already cached items |
CoherenceCacheStrategy.Lock |
lock(long timeout,
int id)
Lock the item |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CoherenceCacheStrategy.Item(Object value, long currentTimestamp, Object version)
Method Detail |
---|
public long getFreshTimestamp()
public Object getValue()
public CoherenceCacheStrategy.Lock lock(long timeout, int id)
lock
in interface CoherenceCacheStrategy.Lockable
public boolean isLock()
isLock
in interface CoherenceCacheStrategy.Lockable
public boolean isGettable(long txTimestamp)
isGettable
in interface CoherenceCacheStrategy.Lockable
public boolean isPuttable(long txTimestamp, Object newVersion, Comparator comparator)
isPuttable
in interface CoherenceCacheStrategy.Lockable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |