public class SimpleEntryView<K,V> extends Object implements EntryView<K,V>, IdentifiedDataSerializable
| Constructor and Description |
|---|
SimpleEntryView() |
SimpleEntryView(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 |
getEvictionCriteriaNumber() |
long |
getExpirationTime()
Returns the expiration time of the entry.
|
int |
getFactoryId() |
long |
getHits()
Returns number of hits of the entry.
|
int |
getId() |
K |
getKey()
Returns the key of the entry.
|
long |
getLastAccessTime()
Returns the last access time to the entry.
|
long |
getLastStoredTime()
Returns the last time value is flushed to mapstore.
|
long |
getLastUpdateTime()
Returns the last time value is updated.
|
V |
getValue()
Returns the value of the entry.
|
long |
getVersion()
Returns the version of the entry
|
void |
readData(ObjectDataInput in) |
void |
setCost(long cost) |
void |
setCreationTime(long creationTime) |
void |
setEvictionCriteriaNumber(long evictionCriteriaNumber) |
void |
setExpirationTime(long expirationTime) |
void |
setHits(long hits) |
void |
setKey(K key) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastStoredTime(long lastStoredTime) |
void |
setLastUpdateTime(long lastUpdateTime) |
void |
setValue(V value) |
void |
setVersion(long version) |
void |
writeData(ObjectDataOutput out) |
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 void setCost(long cost)
public long getCreationTime()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
getCreationTime in interface EntryView<K,V>public void setCreationTime(long creationTime)
public long getExpirationTime()
EntryViewgetExpirationTime in interface EntryView<K,V>public void setExpirationTime(long expirationTime)
public 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 EntryView<K,V>public void setLastAccessTime(long lastAccessTime)
public long getLastStoredTime()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
getLastStoredTime in interface EntryView<K,V>public void setLastStoredTime(long lastStoredTime)
public long getLastUpdateTime()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
getLastUpdateTime in interface EntryView<K,V>public void setLastUpdateTime(long lastUpdateTime)
public long getVersion()
EntryViewgetVersion in interface EntryView<K,V>public void setVersion(long version)
public long getEvictionCriteriaNumber()
public void setEvictionCriteriaNumber(long evictionCriteriaNumber)
public void writeData(ObjectDataOutput out) throws IOException
writeData in interface DataSerializableIOExceptionpublic void readData(ObjectDataInput in) throws IOException
readData in interface DataSerializableIOExceptionpublic int getFactoryId()
getFactoryId in interface IdentifiedDataSerializablepublic int getId()
getId in interface IdentifiedDataSerializableCopyright © 2021 Hazelcast, Inc.. All rights reserved.