com.hazelcast.cache.impl.record
Class CacheDataRecord
java.lang.Object
com.hazelcast.cache.impl.record.AbstractCacheRecord<Data>
com.hazelcast.cache.impl.record.CacheDataRecord
- All Implemented Interfaces:
- Evictable, CacheRecord<Data>, Expirable, DataSerializable
public class CacheDataRecord
- extends AbstractCacheRecord<Data>
Implementation of CacheRecord
where value has an internal serialized format.
Methods inherited from class com.hazelcast.cache.impl.record.AbstractCacheRecord |
getAccessHit, getAccessTime, getCreationTime, getExpirationTime, incrementAccessHit, isExpiredAt, resetAccessHit, setAccessHit, setAccessTime, setCreationTime, setExpirationTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheDataRecord
public CacheDataRecord()
CacheDataRecord
public CacheDataRecord(Data value,
long creationTime,
long expiryTime)
getValue
public Data getValue()
- Description copied from interface:
CacheRecord
- Gets the value of this
CacheRecord
.
- Returns:
- the value of this
CacheRecord
setValue
public void setValue(Data value)
- Description copied from interface:
CacheRecord
- Sets the value of this
CacheRecord
.
- Parameters:
value
- the value for this CacheRecord
writeData
public void writeData(ObjectDataOutput out)
throws IOException
- Description copied from interface:
DataSerializable
- Writes object fields to output stream
- Specified by:
writeData
in interface DataSerializable
- Overrides:
writeData
in class AbstractCacheRecord<Data>
- Parameters:
out
- output
- Throws:
IOException
readData
public void readData(ObjectDataInput in)
throws IOException
- Description copied from interface:
DataSerializable
- Reads fields from the input stream
- Specified by:
readData
in interface DataSerializable
- Overrides:
readData
in class AbstractCacheRecord<Data>
- Parameters:
in
- input
- Throws:
IOException
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.