|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.cache.ReadWriteCache.Item
An item of cached data, timestamped with the time it was cached,.
ReadWriteCache,
Serialized Form| Constructor Summary | |
ReadWriteCache.Item(Object value,
long currentTimestamp)
|
|
| 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)
Don't overwite already cached items |
ReadWriteCache.Lock |
lock(long timeout,
int id)
Lock the item |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReadWriteCache.Item(Object value,
long currentTimestamp)
| Method Detail |
public long getFreshTimestamp()
public Object getValue()
public ReadWriteCache.Lock lock(long timeout,
int id)
lock in interface ReadWriteCache.Lockablepublic boolean isLock()
isLock in interface ReadWriteCache.Lockablepublic boolean isGettable(long txTimestamp)
isGettable in interface ReadWriteCache.Lockablepublic boolean isPuttable(long txTimestamp)
isPuttable in interface ReadWriteCache.Lockable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||