K - key typeV - value typepublic class ReplicatedRecord<K,V> extends Object implements IdentifiedDataSerializable
| Constructor and Description |
|---|
ReplicatedRecord() |
ReplicatedRecord(K key,
V value,
long ttlMillis,
int partitionId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getCreationTime() |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
long |
getHits() |
int |
getId()
Returns type identifier for this class.
|
K |
getKey() |
K |
getKeyInternal() |
long |
getLastAccessTime() |
int |
getPartitionId() |
long |
getTtlMillis() |
long |
getUpdateTime() |
V |
getValue() |
V |
getValueInternal() |
int |
hashCode() |
boolean |
isTombstone() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setHits(long hits) |
V |
setValue(V value,
long ttlMillis) |
V |
setValueInternal(V value,
long ttlMillis) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public K getKey()
public K getKeyInternal()
public V getValue()
public V getValueInternal()
public boolean isTombstone()
public long getTtlMillis()
public long getUpdateTime()
public long getHits()
public void setHits(long hits)
public long getLastAccessTime()
public long getCreationTime()
public int getPartitionId()
public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.