public final class ExtCacheEntryFacade extends java.lang.Object implements ExtCacheEntry
| Modifier and Type | Method and Description |
|---|---|
long |
getAccessedExpireTimeout()
Returns the idle timeout
|
java.lang.Object |
getKey()
Returns the key for this entry in the Cache.
|
HashKey |
getKeyHash()
Returns the keyHash
|
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() |
java.lang.Object |
getValue()
Returns the value of the cache entry.
|
long |
getValueHash()
Returns the value key
|
long |
getValueLength()
Returns the value length
|
StreamSource |
getValueStream()
Returns the value of the cache entry.
|
long |
getVersion() |
boolean |
isExpired(long now)
Returns true when the entry is expired.
|
boolean |
isValid() |
boolean |
isValueNull()
Returns true if the value is null.
|
boolean |
readData(java.io.OutputStream os,
CacheConfig config)
Writes the data to a stream.
|
java.lang.String |
toString() |
void |
updateAccessTime()
Update the access time on a read.
|
public final java.lang.Object getKey()
getKey in interface Cache.Entrypublic final HashKey getKeyHash()
getKeyHash in interface ExtCacheEntrypublic java.lang.Object getValue()
getValue in interface ExtCacheEntrygetValue in interface Cache.Entrypublic boolean isValueNull()
isValueNull in interface ExtCacheEntrypublic final int getUserFlags()
getUserFlags in interface ExtCacheEntrypublic StreamSource getValueStream()
getValueStream in interface ExtCacheEntrypublic long getValueHash()
ExtCacheEntrygetValueHash in interface ExtCacheEntrypublic long getValueLength()
ExtCacheEntrygetValueLength in interface ExtCacheEntrypublic boolean readData(java.io.OutputStream os,
CacheConfig config)
throws java.io.IOException
readData in interface ExtCacheEntryjava.io.IOExceptionpublic long getAccessedExpireTimeout()
ExtCacheEntrygetAccessedExpireTimeout in interface ExtCacheEntrypublic long getModifiedExpireTimeout()
ExtCacheEntrygetModifiedExpireTimeout in interface ExtCacheEntrypublic boolean isExpired(long now)
ExtCacheEntryisExpired in interface ExtCacheEntrypublic void updateAccessTime()
ExtCacheEntryupdateAccessTime in interface ExtCacheEntrypublic long getLeaseExpireTimeout()
ExtCacheEntrygetLeaseExpireTimeout in interface ExtCacheEntrypublic int getLeaseOwner()
ExtCacheEntrygetLeaseOwner in interface ExtCacheEntrypublic long getLastAccessedTime()
getLastAccessedTime in interface ExtCacheEntrypublic long getLastModifiedTime()
ExtCacheEntrygetLastModifiedTime in interface ExtCacheEntrypublic long getVersion()
getVersion in interface ExtCacheEntrypublic MnodeUpdate getRemoteUpdate()
getRemoteUpdate in interface ExtCacheEntrypublic boolean isValid()
isValid in interface ExtCacheEntrypublic int getLoadCount()
ExtCacheEntrygetLoadCount in interface ExtCacheEntrypublic java.lang.String toString()
toString in class java.lang.Object