public class CacheDataRecord extends AbstractCacheRecord<Data,Data>
CacheRecord where value has an internal serialized format.accessHit, accessTime, creationTime, expirationTime, EXPIRY_POLICY_VERSIONTIME_NOT_AVAILABLE| Constructor and Description |
|---|
CacheDataRecord() |
CacheDataRecord(Data value,
long creationTime,
long expiryTime) |
| Modifier and Type | Method and Description |
|---|---|
Data |
getExpiryPolicy()
Gets the expiryPolicy associated with this record.
|
int |
getId()
Returns type identifier for this class.
|
Data |
getValue()
Gets the value of this
Evictable. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setExpiryPolicy(Data expiryPolicy)
Sets the expiry policy for this record.
|
void |
setValue(Data value)
Sets the value of this
CacheRecord. |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getAccessHit, getCreationTime, getExpirationTime, getFactoryId, getLastAccessTime, incrementAccessHit, isExpiredAt, resetAccessHit, setAccessHit, setAccessTime, setCreationTime, setExpirationTimepublic CacheDataRecord()
public CacheDataRecord(Data value, long creationTime, long expiryTime)
public Data getValue()
EvictableEvictable.Evictablepublic void setValue(Data value)
CacheRecordCacheRecord.value - the value for this CacheRecordpublic void setExpiryPolicy(Data expiryPolicy)
CacheRecordpublic Data getExpiryPolicy()
CacheRecordpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializablewriteData in class AbstractCacheRecord<Data,Data>out - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablereadData in class AbstractCacheRecord<Data,Data>in - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public int getId()
IdentifiedDataSerializableCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.