| Modifier and Type | Method and Description |
|---|---|
static void |
applyRecordInfo(Record record,
RecordInfo replicationInfo) |
static RecordInfo |
buildRecordInfo(Record record) |
static Object |
getCachedValue(Record record)
Get current cached value from the record.
|
static Object |
getValueOrCachedValue(Record record,
SerializationService serializationService)
Return cached value where appropriate, otherwise return the actual value.
|
public static void applyRecordInfo(Record record, RecordInfo replicationInfo)
public static RecordInfo buildRecordInfo(Record record)
public static Object getCachedValue(Record record)
Record.getCachedValueUnsafe() See
getValueOrCachedValue(Record, SerializationService)
for details.record - public static Object getValueOrCachedValue(Record record, SerializationService serializationService)
Record.getValue()
The newly de-deserialized value may not be stored into the Record cache when the record has been modified
while the method was running.
WARNING: This method may temporarily set an arbitrary object into the Record cache - this object acts as mutex.
The mutex should never be returned to the outside world. Use getCachedValue(Record) instead of raw
Record.getCachedValueUnsafe() to protect from accidental mutex exposure to the user-code.record - serializationService - Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.