com.hazelcast.cache.impl.record
Class CacheDataRecord

java.lang.Object
  extended by com.hazelcast.cache.impl.record.AbstractCacheRecord<Data>
      extended by com.hazelcast.cache.impl.record.CacheDataRecord
All Implemented Interfaces:
Evictable, CacheRecord<Data>, Expirable, DataSerializable

public class CacheDataRecord
extends AbstractCacheRecord<Data>

Implementation of CacheRecord where value has an internal serialized format.


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

Constructor Detail

CacheDataRecord

public CacheDataRecord()

CacheDataRecord

public CacheDataRecord(Data value,
                       long creationTime,
                       long expiryTime)
Method Detail

getValue

public Data getValue()
Description copied from interface: CacheRecord
Gets the value of this CacheRecord.

Returns:
the value of this CacheRecord

setValue

public void setValue(Data 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<Data>
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<Data>
Parameters:
in - input
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.