public static final class

ReadWriteCache.Item

extends Object
implements Serializable ReadWriteCache.Lockable
java.lang.Object
   ↳ org.hibernate.cache.ReadWriteCache.Item

Class Overview

An item of cached data, timestamped with the time it was cached,.

See Also

Summary

Public Constructors
ReadWriteCache.Item(Object value, Object version, long currentTimestamp)
Public Methods
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()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.cache.ReadWriteCache.Lockable

Public Constructors

public ReadWriteCache.Item (Object value, Object version, long currentTimestamp)

Public Methods

public long getFreshTimestamp ()

The timestamp on the cached data

public Object getValue ()

The actual cached data

public boolean isGettable (long txTimestamp)

Is this item visible to the timestamped transaction?

public boolean isLock ()

Not a lock!

public boolean isPuttable (long txTimestamp, Object newVersion, Comparator comparator)

Don't overwite already cached items

public ReadWriteCache.Lock lock (long timeout, int id)

Lock the item

public String toString ()