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

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

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.
 long getLeaseExpireTimeout()
          Returns the lease timeout
 int getLeaseOwner()
          Returns the lease owner
 int getLoadCount()
          Returns the load count.
 long getModifiedExpireTimeout()
          Returns the expire timeout.
 MnodeUpdate getRemoteUpdate()
           
 int getUserFlags()
           
 V getValue()
          Returns the item's value
 long getValueHash()
          Returns the value key
 long getValueLength()
          Returns the value length
 StreamSource getValueStream()
           
 long getVersion()
           
 boolean isExpired(long now)
          Returns true when the entry is expired.
 boolean isValid()
           
 boolean isValueNull()
          Returns true for a null entry
 boolean readData(java.io.OutputStream os, CacheConfig config)
          Loads the data to the output stream.
 void updateAccessTime()
          Update the access time on a read.
 
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>

getValueHash

long getValueHash()
Returns the value key


getValueLength

long getValueLength()
Returns the value length


getValueStream

StreamSource getValueStream()

getAccessedExpireTimeout

long getAccessedExpireTimeout()
Returns the idle timeout


getModifiedExpireTimeout

long getModifiedExpireTimeout()
Returns the expire timeout.


getLeaseExpireTimeout

long getLeaseExpireTimeout()
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.


updateAccessTime

void updateAccessTime()
Update the access time on a read.


getLeaseOwner

int getLeaseOwner()
Returns the lease owner


isValid

boolean isValid()

getLoadCount

int getLoadCount()
Returns the load count.


getUserFlags

int getUserFlags()

getVersion

long getVersion()
Returns:

getRemoteUpdate

MnodeUpdate getRemoteUpdate()

readData

boolean readData(java.io.OutputStream os,
                 CacheConfig config)
                 throws java.io.IOException
Loads the data to the output stream.

Throws:
java.io.IOException