public class DefaultCacheEntryView extends Object implements CacheEntryView<Data,Data>, DataSerializable
CacheEntryView.| Constructor and Description |
|---|
DefaultCacheEntryView() |
DefaultCacheEntryView(Data key,
Data value,
long expirationTime,
long lastAccessTime,
long accessHit) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAccessHit()
Gets the count of how many time this cache entry has been accessed.
|
long |
getExpirationTime()
Gets the expiration time in milliseconds of the cache entry.
|
Data |
getKey()
Gets the key of the cache entry.
|
long |
getLastAccessTime()
Gets the last access time in milliseconds of the cache entry.
|
Data |
getValue()
Gets the value of the cache entry.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Data getKey()
CacheEntryViewgetKey in interface CacheEntryView<Data,Data>public Data getValue()
CacheEntryViewgetValue in interface CacheEntryView<Data,Data>public long getExpirationTime()
CacheEntryViewgetExpirationTime in interface CacheEntryView<Data,Data>public long getLastAccessTime()
CacheEntryViewgetLastAccessTime in interface CacheEntryView<Data,Data>public long getAccessHit()
CacheEntryViewgetAccessHit in interface CacheEntryView<Data,Data>public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.