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.Entry
public final HashKey getKeyHash()
getKeyHash
in interface ExtCacheEntry
public java.lang.Object getValue()
getValue
in interface ExtCacheEntry
getValue
in interface Cache.Entry
public boolean isValueNull()
isValueNull
in interface ExtCacheEntry
public final int getUserFlags()
getUserFlags
in interface ExtCacheEntry
public StreamSource getValueStream()
getValueStream
in interface ExtCacheEntry
public long getValueHash()
ExtCacheEntry
getValueHash
in interface ExtCacheEntry
public long getValueLength()
ExtCacheEntry
getValueLength
in interface ExtCacheEntry
public boolean readData(java.io.OutputStream os, CacheConfig config) throws java.io.IOException
readData
in interface ExtCacheEntry
java.io.IOException
public long getAccessedExpireTimeout()
ExtCacheEntry
getAccessedExpireTimeout
in interface ExtCacheEntry
public long getModifiedExpireTimeout()
ExtCacheEntry
getModifiedExpireTimeout
in interface ExtCacheEntry
public boolean isExpired(long now)
ExtCacheEntry
isExpired
in interface ExtCacheEntry
public void updateAccessTime()
ExtCacheEntry
updateAccessTime
in interface ExtCacheEntry
public long getLeaseExpireTimeout()
ExtCacheEntry
getLeaseExpireTimeout
in interface ExtCacheEntry
public int getLeaseOwner()
ExtCacheEntry
getLeaseOwner
in interface ExtCacheEntry
public long getLastAccessedTime()
getLastAccessedTime
in interface ExtCacheEntry
public long getLastModifiedTime()
ExtCacheEntry
getLastModifiedTime
in interface ExtCacheEntry
public long getVersion()
getVersion
in interface ExtCacheEntry
public MnodeUpdate getRemoteUpdate()
getRemoteUpdate
in interface ExtCacheEntry
public boolean isValid()
isValid
in interface ExtCacheEntry
public int getLoadCount()
ExtCacheEntry
getLoadCount
in interface ExtCacheEntry
public java.lang.String toString()
toString
in class java.lang.Object