|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.map.impl.SimpleEntryView<K,V>
K
- the type of key.V
- the type of value.public class SimpleEntryView<K,V>
SimpleEntryView is an implementation of EntryView
and also it is writable.
Constructor Summary | |
---|---|
SimpleEntryView()
|
|
SimpleEntryView(K key,
V value)
|
Method Summary | |
---|---|
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()
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 |
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 |
setTtl(long ttl)
|
void |
setValue(V value)
|
void |
setVersion(long version)
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleEntryView(K key, V value)
public SimpleEntryView()
Method Detail |
---|
public K getKey()
EntryView
getKey
in interface EntryView<K,V>
public void setKey(K key)
public V getValue()
EntryView
getValue
in interface EntryView<K,V>
public void setValue(V value)
public long getCost()
EntryView
Warning:
This method returns -1 if statistics is not enabled.
getCost
in interface EntryView<K,V>
public void setCost(long cost)
public long getCreationTime()
EntryView
Warning:
This method returns -1 if statistics is not enabled.
getCreationTime
in interface EntryView<K,V>
public void setCreationTime(long creationTime)
public long getExpirationTime()
EntryView
getExpirationTime
in interface EntryView<K,V>
public void setExpirationTime(long expirationTime)
public long getHits()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
getHits
in interface EntryView<K,V>
public void setHits(long hits)
public long getLastAccessTime()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
getLastAccessTime
in interface EntryView<K,V>
public void setLastAccessTime(long lastAccessTime)
public long getLastStoredTime()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
getLastStoredTime
in interface EntryView<K,V>
public void setLastStoredTime(long lastStoredTime)
public long getLastUpdateTime()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
getLastUpdateTime
in interface EntryView<K,V>
public void setLastUpdateTime(long lastUpdateTime)
public long getVersion()
EntryView
getVersion
in interface EntryView<K,V>
public void setVersion(long version)
public long getEvictionCriteriaNumber()
public void setEvictionCriteriaNumber(long evictionCriteriaNumber)
public long getTtl()
EntryView
getTtl
in interface EntryView<K,V>
public void setTtl(long ttl)
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- output
IOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- input
IOException
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |