Class ProtobufCodec

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

public class ProtobufCodec extends BaseCodec
  • Constructor Details

    • ProtobufCodec

      public ProtobufCodec(Class<?> mapKeyClass, Class<?> mapValueClass)
    • ProtobufCodec

      public ProtobufCodec(Class<?> mapKeyClass, Class<?> mapValueClass, Codec blacklistCodec)
      Parameters:
      blacklistCodec - classes in protobufBlacklist will use this codec
    • ProtobufCodec

      public ProtobufCodec(Class<?> valueClass)
    • ProtobufCodec

      public ProtobufCodec(Class<?> valueClass, Codec blacklistCodec)
      Parameters:
      blacklistCodec - classes in protobufBlacklist will use this codec
  • Method Details

    • addBlacklist

      public void addBlacklist(Class<?> clazz)
    • removeBlacklist

      public void removeBlacklist(Class<?> clazz)
    • 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
    • getMapValueDecoder

      public Decoder<Object> getMapValueDecoder()
      Description copied from interface: Codec
      Returns object decoder used for hash map values in HMAP Redis structure
      Specified by:
      getMapValueDecoder in interface Codec
      Overrides:
      getMapValueDecoder in class BaseCodec
      Returns:
      decoder
    • getMapValueEncoder

      public Encoder getMapValueEncoder()
      Description copied from interface: Codec
      Returns object encoder used for hash map values in HMAP Redis structure
      Specified by:
      getMapValueEncoder in interface Codec
      Overrides:
      getMapValueEncoder in class BaseCodec
      Returns:
      encoder
    • getMapKeyDecoder

      public Decoder<Object> getMapKeyDecoder()
      Description copied from interface: Codec
      Returns object decoder used for hash map keys in HMAP Redis structure
      Specified by:
      getMapKeyDecoder in interface Codec
      Overrides:
      getMapKeyDecoder in class BaseCodec
      Returns:
      decoder
    • getMapKeyEncoder

      public Encoder getMapKeyEncoder()
      Description copied from interface: Codec
      Returns object encoder used for hash map keys in HMAP Redis structure
      Specified by:
      getMapKeyEncoder in interface Codec
      Overrides:
      getMapKeyEncoder in class BaseCodec
      Returns:
      encoder