public class CacheObjectRecord extends AbstractCacheRecord<Object>
CacheRecord which has an internal object format.| Modifier and Type | Field and Description |
|---|---|
protected Object |
value |
accessHit, accessTime, creationTime, expirationTimeTIME_NOT_AVAILABLE| Constructor and Description |
|---|
CacheObjectRecord() |
CacheObjectRecord(Object value,
long creationTime,
long expiryTime) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue()
Gets the value of this
CacheRecord. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setValue(Object 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, setExpirationTimeprotected Object value
public CacheObjectRecord()
public CacheObjectRecord(Object value, long creationTime, long expiryTime)
public Object getValue()
CacheRecordCacheRecord.CacheRecordpublic void setValue(Object value)
CacheRecordCacheRecord.value - the value for this CacheRecordpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializablewriteData in class AbstractCacheRecord<Object>out - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablereadData in class AbstractCacheRecord<Object>in - inputIOExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.