Package io.netty.handler.codec.redis
Class FixedRedisMessagePool
java.lang.Object
io.netty.handler.codec.redis.FixedRedisMessagePool
- All Implemented Interfaces:
RedisMessagePool
A default fixed redis message pool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ByteBuf, ErrorRedisMessage> private final Map<ByteBuf, IntegerRedisMessage> private final Map<ByteBuf, SimpleStringRedisMessage> static final FixedRedisMessagePoolA shared object forFixedRedisMessagePool.private final Map<FixedRedisMessagePool.RedisErrorKey, ErrorRedisMessage> private final Map<FixedRedisMessagePool.RedisReplyKey, SimpleStringRedisMessage> private final LongObjectMap<byte[]> private final LongObjectMap<IntegerRedisMessage> private static final longprivate static final longprivate static final intprivate final Map<String, ErrorRedisMessage> private final Map<String, SimpleStringRedisMessage> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getByteBufOfInteger(long value) Returnsbyte[]for givenmsg.ReturnsErrorRedisMessagefor givencontent.ReturnsErrorRedisMessagefor the givenFixedRedisMessagePool.RedisErrorKeyornullif it does not exist.ReturnsErrorRedisMessagefor givencontent.getInteger(long value) ReturnsIntegerRedisMessagefor givenvalue.getInteger(ByteBuf content) ReturnsIntegerRedisMessagefor givencontent.getSimpleString(ByteBuf content) ReturnsSimpleStringRedisMessagefor givencontent.ReturnsSimpleStringRedisMessagefor the givenFixedRedisMessagePool.RedisReplyKeyornullif it does not exist.getSimpleString(String content) ReturnsSimpleStringRedisMessagefor givencontent.
-
Field Details
-
MIN_CACHED_INTEGER_NUMBER
private static final long MIN_CACHED_INTEGER_NUMBER- See Also:
-
MAX_CACHED_INTEGER_NUMBER
private static final long MAX_CACHED_INTEGER_NUMBER- See Also:
-
SIZE_CACHED_INTEGER_NUMBER
private static final int SIZE_CACHED_INTEGER_NUMBER- See Also:
-
INSTANCE
A shared object forFixedRedisMessagePool. -
byteBufToSimpleStrings
-
stringToSimpleStrings
-
keyToSimpleStrings
-
byteBufToErrors
-
stringToErrors
-
keyToErrors
-
byteBufToIntegers
-
longToIntegers
-
longToByteBufs
-
-
Constructor Details
-
FixedRedisMessagePool
private FixedRedisMessagePool()Creates aFixedRedisMessagePoolinstance.
-
-
Method Details
-
getSimpleString
Description copied from interface:RedisMessagePool- Specified by:
getSimpleStringin interfaceRedisMessagePool
-
getSimpleString
ReturnsSimpleStringRedisMessagefor the givenFixedRedisMessagePool.RedisReplyKeyornullif it does not exist. -
getSimpleString
Description copied from interface:RedisMessagePool- Specified by:
getSimpleStringin interfaceRedisMessagePool
-
getError
Description copied from interface:RedisMessagePool- Specified by:
getErrorin interfaceRedisMessagePool
-
getError
ReturnsErrorRedisMessagefor the givenFixedRedisMessagePool.RedisErrorKeyornullif it does not exist. -
getError
Description copied from interface:RedisMessagePool- Specified by:
getErrorin interfaceRedisMessagePool
-
getInteger
Description copied from interface:RedisMessagePool- Specified by:
getIntegerin interfaceRedisMessagePool
-
getInteger
Description copied from interface:RedisMessagePool- Specified by:
getIntegerin interfaceRedisMessagePool
-
getByteBufOfInteger
public byte[] getByteBufOfInteger(long value) Description copied from interface:RedisMessagePoolReturnsbyte[]for givenmsg. Returnsnullit does not exist.- Specified by:
getByteBufOfIntegerin interfaceRedisMessagePool
-