public class CopyForIterateMapSerializer
extends com.esotericsoftware.kryo.serializers.MapSerializer
Serializer that creates a copy of the source map for writing object data.
This is useful for applications where objects/maps that are serialized might be accessed by different threads. However, it only reduces the probability of concurrent modification exceptions, as even during taking the copy the map might be modified by another thread.
| Constructor and Description |
|---|
CopyForIterateMapSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Map object) |
copy, create, createCopy, read, setGenerics, setKeyClass, setKeysCanBeNull, setValueClass, setValuesCanBeNullpublic void write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Map object)
write in class com.esotericsoftware.kryo.serializers.MapSerializerCopyright © 2010–2015. All rights reserved.