KryoSerializerInstance¶
KryoSerializerInstance is a SerializerInstance.
Creating Instance¶
KryoSerializerInstance takes the following to be created:
- KryoSerializer
-
useUnsafeflag -
usePoolflag
KryoSerializerInstance is created when:
KryoSerializeris requested for a new SerializerInstance
Output¶
KryoSerializerInstance creates Kryo's Output lazily (on demand and once only).
KryoSerializerInstance requests the KryoSerializer for a newKryoOutput.
output is used for serialization.
serialize¶
serialize is part of the SerializerInstance abstraction.
serialize...FIXME
deserialize¶
deserialize is part of the SerializerInstance abstraction.
deserialize...FIXME
Releasing Kryo Instance¶
releaseKryo...FIXME
releaseKryo is used when:
KryoSerializationStreamis requested tocloseKryoDeserializationStreamis requested tocloseKryoSerializerInstanceis requested to serialize and deserialize (and getAutoReset)
getAutoReset¶
getAutoReset uses Java Reflection to access the value of the autoReset field of the Kryo class.
getAutoReset is used when:
KryoSerializeris requested for the supportsRelocationOfSerializedObjects flag