com.caucho.distcache
Interface ExtCacheEntry<K,V>

All Superinterfaces:
Cache.Entry<K,V>
All Known Implementing Classes:
DistCacheEntry, MnodeEntry

public interface ExtCacheEntry<K,V>
extends Cache.Entry<K,V>

Provides additional information about an entry in a Cache.


Method Summary
 long getAccessedExpireTimeout()
          Returns the idle timeout
 HashKey getKeyHash()
          Returns the key hash for the current entry.
 long getLastAccessedTime()
           
 long getLastModifiedTime()
          Returns the last update time.
 int getLeaseOwner()
          Returns the lease owner
 long getLeaseTimeout()
          Returns the lease timeout
 int getLoadCount()
          Returns the load count.
 long getModifiedExpireTimeout()
          Returns the expire timeout.
 int getUserFlags()
           
 V getValue()
          Returns the item's value
 HashKey getValueHashKey()
          Returns the value key
 long getValueLength()
          Returns the value length
 long getVersion()
           
 boolean isExpired(long now)
          Returns true when the entry is expired.
 boolean isValid()
           
 boolean isValueNull()
          Returns true for a null entry
 
Methods inherited from interface javax.cache.Cache.Entry
getKey
 

Method Detail

getKeyHash

HashKey getKeyHash()
Returns the key hash for the current entry.


isValueNull

boolean isValueNull()
Returns true for a null entry


getValue

V getValue()
Returns the item's value

Specified by:
getValue in interface Cache.Entry<K,V>

getValueHashKey

HashKey getValueHashKey()
Returns the value key


getValueLength

long getValueLength()
Returns the value length


getAccessedExpireTimeout

long getAccessedExpireTimeout()
Returns the idle timeout


getModifiedExpireTimeout

long getModifiedExpireTimeout()
Returns the expire timeout.


getLeaseTimeout

long getLeaseTimeout()
Returns the lease timeout


getLastAccessedTime

long getLastAccessedTime()
Returns:

getLastModifiedTime

long getLastModifiedTime()
Returns the last update time.


isExpired

boolean isExpired(long now)
Returns true when the entry is expired.


getLeaseOwner

int getLeaseOwner()
Returns the lease owner


isValid

boolean isValid()

getLoadCount

int getLoadCount()
Returns the load count.


getUserFlags

int getUserFlags()

getVersion

long getVersion()
Returns: