public class SynchronizedCollectionsSerializer
extends com.esotericsoftware.kryo.Serializer
| Constructor and Description |
|---|
SynchronizedCollectionsSerializer(com.esotericsoftware.kryo.Kryo kryo) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
readObjectData(ByteBuffer buffer,
Class<T> clazz) |
static void |
registerSerializers(com.esotericsoftware.kryo.Kryo kryo)
Creates a new
SynchronizedCollectionsSerializer and registers its serializer
for the several synchronized Collections that can be created via Collections,
including Maps. |
void |
writeObjectData(ByteBuffer buffer,
Object object) |
public SynchronizedCollectionsSerializer(com.esotericsoftware.kryo.Kryo kryo)
kryo - the kryo instancepublic <T> T readObjectData(ByteBuffer buffer, Class<T> clazz)
readObjectData in class com.esotericsoftware.kryo.Serializerpublic void writeObjectData(ByteBuffer buffer, Object object)
writeObjectData in class com.esotericsoftware.kryo.Serializerpublic static void registerSerializers(com.esotericsoftware.kryo.Kryo kryo)
SynchronizedCollectionsSerializer and registers its serializer
for the several synchronized Collections that can be created via Collections,
including Maps.kryo - the Kryo instance to set the serializer on.Collections.synchronizedCollection(Collection),
Collections.synchronizedList(List),
Collections.synchronizedSet(Set),
Collections.synchronizedSortedSet(SortedSet),
Collections.synchronizedMap(Map),
Collections.synchronizedSortedMap(SortedMap)Copyright © 2010-2012. All Rights Reserved.