| Modifier and Type | Field and Description | 
|---|---|
static long | 
EPOCH_TIME
Base time to be used for storing time values as diffs (int) rather than full blown epoch based vals (long)
 This allows for a space in seconds, of roughly 68 years. 
 | 
protected long | 
hits  | 
protected Data | 
key  | 
protected int | 
maxIdle  | 
protected int | 
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 | 
getMaxIdle()  | 
long | 
getSequence()
Only used for Hot Restart, HDRecord 
 | 
long | 
getTtl()  | 
long | 
getVersion()  | 
int | 
hashCode()  | 
void | 
onAccess(long now)  | 
void | 
onStore()  | 
void | 
onUpdate(long now)  | 
protected long | 
recomputeWithBaseTime(int value)  | 
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 | 
setMaxIdle(long maxIdle)  | 
void | 
setSequence(long sequence)
Only used for Hot Restart, HDRecord 
 | 
void | 
setTtl(long ttl)  | 
void | 
setVersion(long version)  | 
protected int | 
stripBaseTime(long value)  | 
public static final long EPOCH_TIME
System.currentTimeMillis() prevents any
 time discrepancies among nodes, mis-translated as diffs of -1 ie. Record.NOT_AVAILABLE values.
 (see. https://github.com/hazelcast/hazelcast-enterprise/issues/2527)protected Data key
protected long version
protected int ttl
protected int maxIdle
protected volatile long hits
public final long getVersion()
getVersion in interface Record<V>public final void setVersion(long version)
setVersion in interface Record<V>public long getMaxIdle()
getMaxIdle in interface Record<V>public void setMaxIdle(long maxIdle)
setMaxIdle 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()
Recordpublic Object getCachedValueUnsafe()
RecordRecords.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 final long getSequence()
RecordgetSequence in interface Record<V>public final void setSequence(long sequence)
RecordsetSequence 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>protected long recomputeWithBaseTime(int value)
protected int stripBaseTime(long value)
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.