Package org.redisson.codec
Class BaseEventCodec
- java.lang.Object
-
- org.redisson.codec.BaseEventCodec
-
- All Implemented Interfaces:
Codec
- Direct Known Subclasses:
JCacheEventCodec
,MapCacheEventCodec
public abstract class BaseEventCodec extends Object implements Codec
- Author:
- Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseEventCodec.OSType
-
Field Summary
Fields Modifier and Type Field Description protected Codec
codec
protected BaseEventCodec.OSType
osType
-
Constructor Summary
Constructors Constructor Description BaseEventCodec(Codec codec, BaseEventCodec.OSType osType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
decode(io.netty.buffer.ByteBuf buf, State state, Decoder<?> decoder)
ClassLoader
getClassLoader()
Returns class loader object used to load classes used in decoding processDecoder<Object>
getMapKeyDecoder()
Returns object decoder used for hash map keys in HMAP Redis structureEncoder
getMapKeyEncoder()
Returns object encoder used for hash map keys in HMAP Redis structureDecoder<Object>
getMapValueDecoder()
Returns object decoder used for hash map values in HMAP Redis structureEncoder
getMapValueEncoder()
Returns object encoder used for hash map values in HMAP Redis structureEncoder
getValueEncoder()
Returns object encoder used for any objects stored Redis structure except HMAP-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.redisson.client.codec.Codec
getValueDecoder
-
-
-
-
Field Detail
-
codec
protected final Codec codec
-
osType
protected final BaseEventCodec.OSType osType
-
-
Constructor Detail
-
BaseEventCodec
public BaseEventCodec(Codec codec, BaseEventCodec.OSType osType)
-
-
Method Detail
-
decode
protected Object decode(io.netty.buffer.ByteBuf buf, State state, Decoder<?> decoder) throws IOException
- Throws:
IOException
-
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 interfaceCodec
- 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 interfaceCodec
- 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 interfaceCodec
- 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 interfaceCodec
- Returns:
- encoder
-
getValueEncoder
public Encoder getValueEncoder()
Description copied from interface:Codec
Returns object encoder used for any objects stored Redis structure except HMAP- Specified by:
getValueEncoder
in interfaceCodec
- 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
- Returns:
- class loader
-
-