R - Type of record to construct EntryView over it.public class LazyEntryViewFromRecord<R extends Record> extends SampleableConcurrentHashMap.SamplingEntry implements EntryView
| Constructor and Description |
|---|
LazyEntryViewFromRecord(R record,
SerializationService serializationService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
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.
|
long |
getHits()
Returns number of hits of the entry.
|
Object |
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.
|
Record |
getRecord() |
long |
getTtl()
Returns the last set time to live second.
|
Object |
getValue()
Returns the value of the entry.
|
long |
getVersion()
Returns the version of the entry
|
int |
hashCode() |
String |
toString() |
getEntryKey, getEntryValuepublic LazyEntryViewFromRecord(R record, SerializationService serializationService)
public Object getKey()
EntryViewpublic Object getValue()
EntryViewpublic 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 long getExpirationTime()
EntryViewgetExpirationTime in interface EntryViewpublic long getHits()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
public long getLastAccessTime()
EntryViewWarning:
ˆ This method returns -1 if statistics is not enabled.
getLastAccessTime in interface EntryViewpublic 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 long getVersion()
EntryViewgetVersion in interface EntryViewpublic long getTtl()
EntryViewpublic Record getRecord()
public boolean equals(Object o)
equals in class SampleableConcurrentHashMap.SamplingEntrypublic int hashCode()
hashCode in class SampleableConcurrentHashMap.SamplingEntrypublic String toString()
toString in class SampleableConcurrentHashMap.SamplingEntryCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.