public static final class

CoherenceCacheStrategy.Item

extends Object
implements CoherenceCacheStrategy.Lockable Serializable
java.lang.Object
   ↳ com.atlassian.confluence.cache.tangosol.hibernate.CoherenceCacheStrategy.Item

Class Overview

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

Summary

Public Constructors
CoherenceCacheStrategy.Item(Object value, long currentTimestamp, Object version)
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
CoherenceCacheStrategy.Lock lock(long timeout, int id)
Lock the item
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.cache.tangosol.hibernate.CoherenceCacheStrategy.Lockable

Public Constructors

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

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 CoherenceCacheStrategy.Lock lock (long timeout, int id)

Lock the item

public String toString ()