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, getEntryValue
public LazyEntryViewFromRecord(R record, SerializationService serializationService)
public Object getKey()
EntryView
public Object getValue()
EntryView
public long getCost()
EntryView
Warning:
This method returns -1 if statistics is not enabled.
public long getCreationTime()
EntryView
Warning:
This method returns -1 if statistics is not enabled.
getCreationTime
in interface EntryView
public long getExpirationTime()
EntryView
getExpirationTime
in interface EntryView
public long getHits()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
public long getLastAccessTime()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
getLastAccessTime
in interface EntryView
public long getLastStoredTime()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
getLastStoredTime
in interface EntryView
public long getLastUpdateTime()
EntryView
Warning:
ˆ This method returns -1 if statistics is not enabled.
getLastUpdateTime
in interface EntryView
public long getVersion()
EntryView
getVersion
in interface EntryView
public long getTtl()
EntryView
public Record getRecord()
public boolean equals(Object o)
equals
in class SampleableConcurrentHashMap.SamplingEntry
public int hashCode()
hashCode
in class SampleableConcurrentHashMap.SamplingEntry
public String toString()
toString
in class SampleableConcurrentHashMap.SamplingEntry
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.