Interface KryoRegistrar
-
- All Superinterfaces:
java.io.Serializable
public interface KryoRegistrar extends java.io.SerializableInterface to be implemented by clients to register their classes withKryo.KryoRegistrarsimplementations have to be stateless andSerializable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterClasses(com.esotericsoftware.kryo.Kryo kryo)Implementations should call variants ofKryo.register(Class)to register custom classes with givenKryoinstance.
-
-
-
Method Detail
-
registerClasses
void registerClasses(com.esotericsoftware.kryo.Kryo kryo)
Implementations should call variants ofKryo.register(Class)to register custom classes with givenKryoinstance. It should be stateless and resulting in the same type registrations (including order of registration) every time it is called.- Parameters:
kryo-Kryoinstance to be used for type registration
-
-