V
- the type of value which is in the Recordpublic interface Record<V>
Modifier and Type | Field and Description |
---|---|
static Object |
NOT_CACHED
If not a
CachedDataRecord . |
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() |
V |
getValue() |
long |
getVersion() |
void |
onAccess() |
void |
onStore() |
void |
onUpdate() |
void |
setCreationTime(long creationTime) |
void |
setEvictionCriteriaNumber(long evictionCriteriaNumber) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastUpdateTime(long lastUpdatedTime) |
void |
setSequence(long sequence)
Only used for Hot Restart, HDRecord
|
void |
setStatistics(RecordStatistics stats) |
void |
setTtl(long ttl) |
void |
setValue(V value) |
void |
setVersion(long version) |
static final Object NOT_CACHED
CachedDataRecord
.Data getKey()
V getValue()
void setValue(V value)
RecordStatistics getStatistics()
void setStatistics(RecordStatistics stats)
void onAccess()
void onUpdate()
void onStore()
long getCost()
long getVersion()
void setVersion(long version)
void setEvictionCriteriaNumber(long evictionCriteriaNumber)
long getEvictionCriteriaNumber()
Object getCachedValueUnsafe()
Records.getCachedValue(Record)
instead.boolean casCachedValue(Object expectedValue, Object newValue)
==
the expected value.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.long getTtl()
void setTtl(long ttl)
long getLastAccessTime()
void setLastAccessTime(long lastAccessTime)
long getLastUpdateTime()
void setLastUpdateTime(long lastUpdatedTime)
long getCreationTime()
void setCreationTime(long creationTime)
long getSequence()
void setSequence(long sequence)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.