Interface KryoRegistrar

  • All Superinterfaces:
    java.io.Serializable

    public interface KryoRegistrar
    extends java.io.Serializable
    Interface to be implemented by clients to register their classes with Kryo.

    KryoRegistrars implementations have to be stateless and Serializable.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void registerClasses​(com.esotericsoftware.kryo.Kryo kryo)
      Implementations should call variants of Kryo.register(Class) to register custom classes with given Kryo instance.
    • Method Detail

      • registerClasses

        void registerClasses​(com.esotericsoftware.kryo.Kryo kryo)
        Implementations should call variants of Kryo.register(Class) to register custom classes with given Kryo instance. It should be stateless and resulting in the same type registrations (including order of registration) every time it is called.
        Parameters:
        kryo - Kryo instance to be used for type registration