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 its store (e.g.
|
long |
getLastUpdateTime()
Returns the last time the value was updated.
|
Record |
getRecord() |
long |
getTtl()
Returns the last set time to live in milliseconds.
|
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()
EntryView
Warning: This method returns -1 if statistics are not enabled or not implemented.
public long getCreationTime()
EntryView
Warning: This method returns -1 if statistics are not enabled or not implemented.
getCreationTime in interface EntryViewpublic long getExpirationTime()
EntryViewgetExpirationTime in interface EntryViewpublic long getHits()
EntryView
Warning: This method returns -1 if statistics are not enabled or not implemented.
public long getLastAccessTime()
EntryView
Warning: This method returns -1 if statistics are not enabled or not implemented.
getLastAccessTime in interface EntryViewpublic long getLastStoredTime()
EntryViewMapStore).
Warning: This method returns -1 if statistics are not enabled or not implemented.
getLastStoredTime in interface EntryViewpublic long getLastUpdateTime()
EntryView
Warning: This method returns -1 if statistics are not enabled or not implemented.
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 © 2018 Hazelcast, Inc.. All Rights Reserved.