de.javakaffee.kryoserializers
Class CopyForIterateMapSerializer
java.lang.Object
com.esotericsoftware.kryo.Serializer
com.esotericsoftware.kryo.serialize.MapSerializer
de.javakaffee.kryoserializers.CopyForIterateMapSerializer
public class CopyForIterateMapSerializer
- extends com.esotericsoftware.kryo.serialize.MapSerializer
A kryo 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.
- Author:
- Martin Grotzke
| Methods inherited from class com.esotericsoftware.kryo.serialize.MapSerializer |
readObjectData, setKeyClass, setKeyClass, setKeysCanBeNull, setValueClass, setValueClass, setValuesCanBeNull |
| Methods inherited from class com.esotericsoftware.kryo.Serializer |
isFinal, newInstance, readObject, setCanBeNull, writeObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyForIterateMapSerializer
public CopyForIterateMapSerializer(com.esotericsoftware.kryo.Kryo kryo)
writeObjectData
public void writeObjectData(ByteBuffer buffer,
Object object)
- Overrides:
writeObjectData in class com.esotericsoftware.kryo.serialize.MapSerializer
Copyright © 2010-2011. All Rights Reserved.