com.hazelcast.cache.impl.record
Class CacheObjectRecord

java.lang.Object
  extended by com.hazelcast.cache.impl.record.AbstractCacheRecord<Object>
      extended by 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.


Field Summary
protected  Object value
           
 
Fields inherited from class com.hazelcast.cache.impl.record.AbstractCacheRecord
accessHit, accessTime, creationTime, expirationTime
 
Constructor Summary
CacheObjectRecord()
           
CacheObjectRecord(Object value, long creationTime, long expiryTime)
           
 
Method Summary
 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
 
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
 

Field Detail

value

protected Object value
Constructor Detail

CacheObjectRecord

public CacheObjectRecord()

CacheObjectRecord

public CacheObjectRecord(Object value,
                         long creationTime,
                         long expiryTime)
Method Detail

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.