| Modifier and Type | Field and Description |
|---|---|
protected long |
creationTime |
protected long |
evictionCriteriaNumber
evictionCriteriaNumber may be used for LRU or LFU eviction depending on configuration.
|
protected Data |
key |
protected long |
lastAccessTime |
protected long |
lastUpdateTime |
protected long |
ttl |
protected long |
version |
NOT_CACHED| Modifier and Type | Method and Description |
|---|---|
boolean |
casCachedValue(Object expectedValue,
Object newValue)
Atomically sets the cached value to the given new value
if the current cached value
== the expected value. |
Object |
getCachedValueUnsafe()
Get current cache value or null.
|
long |
getCost() |
long |
getCreationTime() |
long |
getEvictionCriteriaNumber() |
Data |
getKey() |
long |
getLastAccessTime() |
long |
getLastUpdateTime() |
long |
getSequence()
Only used for Hot Restart, HDRecord
|
RecordStatistics |
getStatistics() |
long |
getTtl() |
long |
getVersion() |
void |
onAccess() |
void |
onStore() |
void |
onUpdate() |
void |
setCreationTime(long creationTime) |
void |
setEvictionCriteriaNumber(long evictionCriteriaNumber) |
void |
setKey(Data key) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastUpdateTime(long lastUpdateTime) |
void |
setSequence(long sequence)
Only used for Hot Restart, HDRecord
|
void |
setStatistics(RecordStatistics stats) |
void |
setTtl(long ttl) |
void |
setVersion(long version) |
protected Data key
protected long version
protected long evictionCriteriaNumber
protected long ttl
protected volatile long lastAccessTime
protected volatile long lastUpdateTime
protected long creationTime
public final long getVersion()
getVersion in interface Record<V>public final void setVersion(long version)
setVersion in interface Record<V>public long getEvictionCriteriaNumber()
getEvictionCriteriaNumber in interface Record<V>public void setEvictionCriteriaNumber(long evictionCriteriaNumber)
setEvictionCriteriaNumber in interface Record<V>public long getLastAccessTime()
getLastAccessTime in interface Record<V>public void setLastAccessTime(long lastAccessTime)
setLastAccessTime in interface Record<V>public long getLastUpdateTime()
getLastUpdateTime in interface Record<V>public void setLastUpdateTime(long lastUpdateTime)
setLastUpdateTime in interface Record<V>public long getCreationTime()
getCreationTime in interface Record<V>public void setCreationTime(long creationTime)
setCreationTime in interface Record<V>public Object getCachedValueUnsafe()
RecordRecords.getCachedValue(Record) instead.getCachedValueUnsafe in interface Record<V>public RecordStatistics getStatistics()
getStatistics in interface Record<V>public void setStatistics(RecordStatistics stats)
setStatistics in interface Record<V>public boolean casCachedValue(Object expectedValue, Object newValue)
Record== the expected value.casCachedValue in interface Record<V>expectedValue - the expected cached valuenewValue - the new cached valuetrue if successful. False return indicates that
the actual cached value was not equal to the expected cached value.public void setKey(Data key)
public final long getSequence()
RecordgetSequence in interface Record<V>public final void setSequence(long sequence)
RecordsetSequence in interface Record<V>Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.