Package one.microstream.afs.redis
Class StringByteBufferCodec.Default
java.lang.Object
one.microstream.afs.redis.StringByteBufferCodec.Default
- All Implemented Interfaces:
io.lettuce.core.codec.RedisCodec<String,ByteBuffer>
,io.lettuce.core.codec.ToByteBufEncoder<String,ByteBuffer>
,StringByteBufferCodec
- Enclosing interface:
- StringByteBufferCodec
public static class StringByteBufferCodec.Default extends Object implements StringByteBufferCodec
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.afs.redis.StringByteBufferCodec
StringByteBufferCodec.Default
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description String
decodeKey(ByteBuffer bytes)
ByteBuffer
decodeValue(ByteBuffer bytes)
ByteBuffer
encodeKey(String key)
void
encodeKey(String key, io.netty.buffer.ByteBuf target)
ByteBuffer
encodeValue(ByteBuffer value)
void
encodeValue(ByteBuffer value, io.netty.buffer.ByteBuf target)
int
estimateSize(Object keyOrValue)
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
encodeKey
- Specified by:
encodeKey
in interfaceio.lettuce.core.codec.RedisCodec<String,ByteBuffer>
-
decodeKey
- Specified by:
decodeKey
in interfaceio.lettuce.core.codec.RedisCodec<String,ByteBuffer>
-
encodeValue
- Specified by:
encodeValue
in interfaceio.lettuce.core.codec.RedisCodec<String,ByteBuffer>
-
decodeValue
- Specified by:
decodeValue
in interfaceio.lettuce.core.codec.RedisCodec<String,ByteBuffer>
-
encodeKey
- Specified by:
encodeKey
in interfaceio.lettuce.core.codec.ToByteBufEncoder<String,ByteBuffer>
-
encodeValue
- Specified by:
encodeValue
in interfaceio.lettuce.core.codec.ToByteBufEncoder<String,ByteBuffer>
-
estimateSize
- Specified by:
estimateSize
in interfaceio.lettuce.core.codec.ToByteBufEncoder<String,ByteBuffer>
-