Class FixedRedisMessagePool
java.lang.Object
io.netty.handler.codec.redis.FixedRedisMessagePool
- All Implemented Interfaces:
RedisMessagePool
@UnstableApi
public final class FixedRedisMessagePool
extends java.lang.Object
implements RedisMessagePool
A default fixed redis message pool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.util.Map<ByteBuf, ErrorRedisMessage> private final java.util.Map<ByteBuf, IntegerRedisMessage> private final java.util.Map<ByteBuf, SimpleStringRedisMessage> static final FixedRedisMessagePoolA shared object forFixedRedisMessagePool.private final java.util.Map<FixedRedisMessagePool.RedisErrorKey, ErrorRedisMessage> private final java.util.Map<FixedRedisMessagePool.RedisReplyKey, SimpleStringRedisMessage> private final LongObjectMap<byte[]> private final LongObjectMap<IntegerRedisMessage> private static final longprivate static final longprivate static final intprivate final java.util.Map<java.lang.String, ErrorRedisMessage> private final java.util.Map<java.lang.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.getError(java.lang.String content) 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(java.lang.String content) ReturnsSimpleStringRedisMessagefor givencontent.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
private final java.util.Map<FixedRedisMessagePool.RedisReplyKey, SimpleStringRedisMessage> 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
-