Class MarshallingCodec

java.lang.Object
org.redisson.client.codec.BaseCodec
org.redisson.codec.MarshallingCodec
All Implemented Interfaces:
Codec

public class MarshallingCodec extends BaseCodec
JBoss Marshalling codec. Uses River protocol by default. https://github.com/jboss-remoting/jboss-marshalling
Author:
Nikita Koksharov
  • Constructor Details

    • MarshallingCodec

      public MarshallingCodec()
    • MarshallingCodec

      public MarshallingCodec(ClassLoader classLoader)
    • MarshallingCodec

      public MarshallingCodec(ClassLoader classLoader, MarshallingCodec codec)
    • MarshallingCodec

      public MarshallingCodec(MarshallingCodec.Protocol protocol, org.jboss.marshalling.MarshallingConfiguration configuration)
  • Method Details

    • createConfig

      protected org.jboss.marshalling.MarshallingConfiguration createConfig()
    • 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