com.hazelcast.cache.impl.record
Class CacheObjectRecord
java.lang.Object
com.hazelcast.cache.impl.record.AbstractCacheRecord<Object>
com.hazelcast.cache.impl.record.CacheObjectRecord
- All Implemented Interfaces:
- Evictable, CacheRecord<Object>, Expirable, DataSerializable
public class CacheObjectRecord
- extends AbstractCacheRecord<Object>
Implementation of CacheRecord
which has an internal object 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 |
value
protected Object value
CacheObjectRecord
public CacheObjectRecord()
CacheObjectRecord
public CacheObjectRecord(Object value,
long creationTime,
long expiryTime)
getValue
public Object getValue()
- Description copied from interface:
CacheRecord
- Gets the value of this
CacheRecord
.
- Returns:
- the value of this
CacheRecord
setValue
public void setValue(Object 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<Object>
- 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<Object>
- Parameters:
in
- input
- Throws:
IOException
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.