public class CopyForIterateCollectionSerializer
extends com.esotericsoftware.kryo.serialize.CollectionSerializer
Serializer that creates a copy of the source collection for writing object data.
This is useful for applications where objects/collections 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 collection might be modified by another thread.
| Constructor and Description |
|---|
CopyForIterateCollectionSerializer(com.esotericsoftware.kryo.Kryo kryo) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeObjectData(ByteBuffer buffer,
Object object) |
readObjectData, setElementClass, setElementClass, setElementsCanBeNull, setLengthpublic CopyForIterateCollectionSerializer(com.esotericsoftware.kryo.Kryo kryo)
public void writeObjectData(ByteBuffer buffer, Object object)
writeObjectData in class com.esotericsoftware.kryo.serialize.CollectionSerializerCopyright © 2010-2012. All Rights Reserved.