Class SynchronizedCollectionsSerializer
-
- All Implemented Interfaces:
public class SynchronizedCollectionsSerializer extends Serializer<T>A kryo Serializer for synchronized Collections and Maps created via Collections.
-
-
Field Summary
Fields Modifier and Type Field Description public booleanacceptsNull
-
Constructor Summary
Constructors Constructor Description SynchronizedCollectionsSerializer()
-
Method Summary
Modifier and Type Method Description Objectread(Kryo kryo, Input input, Class<out Object> clazz)voidwrite(Kryo kryo, Output output, Object object)Objectcopy(Kryo kryo, Object original)static voidregisterSerializers(Kryo kryo)Creates a new SynchronizedCollectionsSerializer and registers its serializer for the several synchronized Collections that can be created via Collections, including Maps. -
-
Method Detail
-
registerSerializers
static void registerSerializers(Kryo kryo)
Creates a new SynchronizedCollectionsSerializer and registers its serializer for the several synchronized Collections that can be created via Collections, including Maps.
- Parameters:
kryo- the Kryo instance to set the serializer on.
-
-
-
-