Modifier and Type | Field and Description |
---|---|
protected long |
creationTime |
protected long |
hits |
protected Data |
key |
protected long |
lastAccessTime |
protected long |
lastUpdateTime |
protected long |
ttl |
protected long |
version |
NOT_AVAILABLE, 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. |
boolean |
equals(Object o) |
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 |
getSequence()
Only used for Hot Restart, HDRecord
|
long |
getTtl() |
long |
getVersion() |
int |
hashCode() |
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 lastUpdateTime) |
void |
setSequence(long sequence)
Only used for Hot Restart, HDRecord
|
void |
setTtl(long ttl) |
void |
setVersion(long version) |
protected Data key
protected long version
protected long ttl
protected long creationTime
protected volatile long hits
protected volatile long lastAccessTime
protected volatile long lastUpdateTime
public final long getVersion()
getVersion
in interface Record<V>
public final void setVersion(long version)
setVersion
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 long getCost()
Record
public Object getCachedValueUnsafe()
Record
Records.getCachedValue(Record)
instead.getCachedValueUnsafe
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()
Record
getSequence
in interface Record<V>
public final void setSequence(long sequence)
Record
setSequence
in interface Record<V>
public long getExpirationTime()
getExpirationTime
in interface Record<V>
public void setExpirationTime(long expirationTime)
setExpirationTime
in interface Record<V>
public long getLastStoredTime()
getLastStoredTime
in interface Record<V>
public void setLastStoredTime(long lastStoredTime)
setLastStoredTime
in interface Record<V>
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.