Package org.redisson.codec
Class SnappyCodec
- java.lang.Object
-
- org.redisson.client.codec.BaseCodec
-
- org.redisson.codec.SnappyCodec
-
- All Implemented Interfaces:
Codec
public class SnappyCodec extends BaseCodec
Snappy compression codec. Uses innerCodec
to convert object to binary stream.MarshallingCodec
used by default. Fully thread-safe.- Author:
- Nikita Koksharov
- See Also:
MarshallingCodec
-
-
Field Summary
-
Fields inherited from class org.redisson.client.codec.BaseCodec
SKIPPED_CODECS
-
-
Constructor Summary
Constructors Constructor Description SnappyCodec()
SnappyCodec(ClassLoader classLoader)
SnappyCodec(ClassLoader classLoader, SnappyCodec codec)
SnappyCodec(Codec innerCodec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
Returns class loader object used to load classes used in decoding processDecoder<Object>
getValueDecoder()
Returns object decoder used for any objects stored Redis structure except HMAPEncoder
getValueEncoder()
Returns object encoder used for any objects stored Redis structure except HMAP-
Methods inherited from class org.redisson.client.codec.BaseCodec
copy, getMapKeyDecoder, getMapKeyEncoder, getMapValueDecoder, getMapValueEncoder, toString
-
-
-
-
Constructor Detail
-
SnappyCodec
public SnappyCodec()
-
SnappyCodec
public SnappyCodec(Codec innerCodec)
-
SnappyCodec
public SnappyCodec(ClassLoader classLoader)
-
SnappyCodec
public SnappyCodec(ClassLoader classLoader, SnappyCodec codec) throws ReflectiveOperationException
- Throws:
ReflectiveOperationException
-
-
Method Detail
-
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 interfaceCodec
- Overrides:
getClassLoader
in classBaseCodec
- Returns:
- class loader
-
-