public static final class ReadWriteCache.Item extends Object implements Serializable, ReadWriteCache.Lockable
ReadWriteCache,
Serialized Form| Constructor and Description |
|---|
Item(Object value,
Object version,
long currentTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
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
|
ReadWriteCache.Lock |
lock(long timeout,
int id)
Lock the item
|
String |
toString() |
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,
Object newVersion,
Comparator comparator)
isPuttable in interface ReadWriteCache.LockableCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved