Class KryoCodec

All Implemented Interfaces:
Codec

public class KryoCodec extends BaseCodec
Kryo 4 codec

Fully thread-safe.

Author:
Nikita Koksharov
  • Constructor Details

  • Method Details

    • get

      public com.esotericsoftware.kryo.Kryo get()
    • offer

      public void offer(com.esotericsoftware.kryo.Kryo kryo)
    • createInstance

      protected com.esotericsoftware.kryo.Kryo createInstance(List<Class<?>> classes, ClassLoader classLoader)
      Sub classes can customize the Kryo instance by overriding this method
      Returns:
      create Kryo instance
    • getValueDecoder

      public Decoder<Object> getValueDecoder()
      Description copied from interface: Codec
      Returns object decoder used for any objects stored Redis structure except HMAP
      Returns:
      decoder
    • getValueEncoder

      public Encoder getValueEncoder()
      Description copied from interface: Codec
      Returns object encoder used for any objects stored Redis structure except HMAP
      Returns:
      encoder
    • getClassLoader

      public ClassLoader getClassLoader()
      Description copied from interface: Codec
      Returns class loader object used to load classes used in decoding process
      Specified by:
      getClassLoader in interface Codec
      Overrides:
      getClassLoader in class BaseCodec
      Returns:
      class loader