V
- the type of value which is in the Recordpublic interface Record<V>
Modifier and Type | Field and Description |
---|---|
static int |
NOT_AVAILABLE |
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()
Returns heap cost of this record in bytes.
|
long |
getCreationTime() |
long |
getExpirationTime() |
long |
getHits() |
Data |
getKey() |
long |
getLastAccessTime() |
long |
getLastStoredTime() |
long |
getLastUpdateTime() |
long |
getMaxIdle() |
long |
getSequence()
Only used for Hot Restart, HDRecord
|
long |
getTtl() |
V |
getValue() |
long |
getVersion() |
void |
onAccess(long now) |
void |
onStore() |
void |
onUpdate(long now) |
void |
setCreationTime(long creationTime) |
void |
setExpirationTime(long expirationTime) |
void |
setHits(long hits) |
void |
setKey(Data key) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastStoredTime(long lastStoredTime) |
void |
setLastUpdateTime(long lastUpdatedTime) |
void |
setMaxIdle(long maxIdle) |
void |
setSequence(long sequence)
Only used for Hot Restart, HDRecord
|
void |
setTtl(long ttl) |
void |
setValue(V value) |
void |
setVersion(long version) |
static final Object NOT_CACHED
CachedDataRecord
.static final int NOT_AVAILABLE
Data getKey()
void setKey(Data key)
V getValue()
void setValue(V value)
void onAccess(long now)
void onUpdate(long now)
void onStore()
long getCost()
long getVersion()
void setVersion(long version)
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 getMaxIdle()
void setMaxIdle(long maxIdle)
long getLastAccessTime()
void setLastAccessTime(long lastAccessTime)
long getLastUpdateTime()
void setLastUpdateTime(long lastUpdatedTime)
long getCreationTime()
void setCreationTime(long creationTime)
long getHits()
void setHits(long hits)
long getExpirationTime()
void setExpirationTime(long expirationTime)
long getLastStoredTime()
void setLastStoredTime(long lastStoredTime)
long getSequence()
void setSequence(long sequence)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.