public class CopyForIterateCollectionSerializer
extends com.esotericsoftware.kryo.serializers.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() |
Modifier and Type | Method and Description |
---|---|
void |
write(com.esotericsoftware.kryo.Kryo kryo,
com.esotericsoftware.kryo.io.Output output,
Collection object) |
copy, create, createCopy, read, setElementClass, setElementsCanBeNull, setGenerics
public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, Collection object)
write
in class com.esotericsoftware.kryo.serializers.CollectionSerializer
Copyright © 2010–2018. All rights reserved.