public class ReplicatedMapEntryView<K,V> extends Object implements EntryView, IdentifiedDataSerializable
| Constructor and Description |
|---|
ReplicatedMapEntryView() |
ReplicatedMapEntryView(K key,
V value) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCost()
Returns the cost (in bytes) of the entry.
|
long |
getCreationTime()
Returns the creation time of the entry.
|
long |
getExpirationTime()
Returns the expiration time of the entry.
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
long |
getHits()
Returns number of hits of the entry.
|
int |
getId()
Returns type identifier for this class.
|
K |
getKey()
Returns the key of the entry.
|
long |
getLastAccessTime()
Returns the last access time for the entry.
|
long |
getLastStoredTime()
Returns the last time the value was flushed to mapstore.
|
long |
getLastUpdateTime()
Returns the last time the value was updated.
|
long |
getTtl()
Returns the last set time to live second.
|
V |
getValue()
Returns the value of the entry.
|
long |
getVersion()
Returns the version of the entry
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setCreationTime(long creationTime) |
void |
setHits(long hits) |
void |
setKey(K key) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastUpdateTime(long lastUpdateTime) |
void |
setTtl(long ttl) |
void |
setValue(V value) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public void setKey(K key)
public V getValue()
EntryViewpublic void setValue(V value)
public long getCost()
EntryViewWarning:
This method returns -1 if statistics is not enabled.
public long getCreationTime()
EntryViewWarning:
This method returns -1 if statistics is not enabled.
getCreationTime in interface EntryViewpublic void setCreationTime(long creationTime)
public long getExpirationTime()
EntryViewgetExpirationTime in interface EntryViewpublic long getHits()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
public void setHits(long hits)
public long getLastAccessTime()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
getLastAccessTime in interface EntryViewpublic void setLastAccessTime(long lastAccessTime)
public long getLastStoredTime()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
getLastStoredTime in interface EntryViewpublic long getLastUpdateTime()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
getLastUpdateTime in interface EntryViewpublic void setLastUpdateTime(long lastUpdateTime)
public long getVersion()
EntryViewgetVersion in interface EntryViewpublic long getTtl()
EntryViewpublic void setTtl(long ttl)
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.