public class CacheDataRecord extends AbstractCacheRecord<Data>
CacheRecord
where value has an internal serialized format.accessHit, accessTime, creationTime, expirationTime
TIME_NOT_AVAILABLE
Constructor and Description |
---|
CacheDataRecord() |
CacheDataRecord(Data value,
long creationTime,
long expiryTime) |
Modifier and Type | Method and Description |
---|---|
Data |
getValue()
Gets the value of this
CacheRecord . |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setValue(Data value)
Sets the value of this
CacheRecord . |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getAccessHit, getAccessTime, getCreationTime, getExpirationTime, incrementAccessHit, isExpiredAt, resetAccessHit, setAccessHit, setAccessTime, setCreationTime, setExpirationTime
public CacheDataRecord()
public CacheDataRecord(Data value, long creationTime, long expiryTime)
public Data getValue()
CacheRecord
CacheRecord
.CacheRecord
public void setValue(Data value)
CacheRecord
CacheRecord
.value
- the value for this CacheRecord
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
writeData
in class AbstractCacheRecord<Data>
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
readData
in class AbstractCacheRecord<Data>
in
- inputIOException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.