public class LazyMapEntry extends Object implements Map.Entry, Serializable
Map.Entry
implementation which serializes/de-serializes key and value objects on demand.
It is beneficial when you need to prevent unneeded serialization/de-serialization
when creating a Map.Entry
. Mainly targeted to supply a lazy entry to
EntryProcessor.process(Map.Entry)
and
EntryBackupProcessor.processBackup(Map.Entry)
} methods.
Note that this implementation is not synchronized and is not thread-safe.
LazyMapEntry itself is serializable as long as the object representations of both key and value are serializable.
After serialization objects are resolved using injected SerializationService. De-serialized LazyMapEntry
does contain object representation only Data representations and SerializationService is set to null. In other
words: It's as usable just as a regular Map.Entry.Constructor and Description |
---|
LazyMapEntry() |
LazyMapEntry(Object key,
Object value,
SerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Object |
getKey() |
Object |
getKeyData() |
Object |
getValue() |
Object |
getValueData() |
int |
hashCode() |
void |
init(Object key,
Object value,
SerializationService serializationService) |
boolean |
isModified() |
Object |
setValue(Object value) |
String |
toString() |
public LazyMapEntry()
public LazyMapEntry(Object key, Object value, SerializationService serializationService)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.