Package io.netty.handler.codec.redis
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 Classes Modifier and Type Class Description static classFixedRedisMessagePool.RedisErrorKeystatic classFixedRedisMessagePool.RedisReplyKey
-
Field Summary
Fields Modifier and Type Field Description static FixedRedisMessagePoolINSTANCEA shared object forFixedRedisMessagePool.
-
Method Summary
-
-
-
Field Detail
-
INSTANCE
public static final FixedRedisMessagePool INSTANCE
A shared object forFixedRedisMessagePool.
-
-
Method Detail
-
getSimpleString
public SimpleStringRedisMessage getSimpleString(java.lang.String content)
Description copied from interface:RedisMessagePool- Specified by:
getSimpleStringin interfaceRedisMessagePool
-
getSimpleString
public SimpleStringRedisMessage getSimpleString(FixedRedisMessagePool.RedisReplyKey key)
ReturnsSimpleStringRedisMessagefor the givenFixedRedisMessagePool.RedisReplyKeyornullif it does not exist.
-
getSimpleString
public SimpleStringRedisMessage getSimpleString(ByteBuf content)
Description copied from interface:RedisMessagePool- Specified by:
getSimpleStringin interfaceRedisMessagePool
-
getError
public ErrorRedisMessage getError(java.lang.String content)
Description copied from interface:RedisMessagePool- Specified by:
getErrorin interfaceRedisMessagePool
-
getError
public ErrorRedisMessage getError(FixedRedisMessagePool.RedisErrorKey key)
ReturnsErrorRedisMessagefor the givenFixedRedisMessagePool.RedisErrorKeyornullif it does not exist.
-
getError
public ErrorRedisMessage getError(ByteBuf content)
Description copied from interface:RedisMessagePool- Specified by:
getErrorin interfaceRedisMessagePool
-
getInteger
public IntegerRedisMessage getInteger(long value)
Description copied from interface:RedisMessagePool- Specified by:
getIntegerin interfaceRedisMessagePool
-
getInteger
public IntegerRedisMessage getInteger(ByteBuf content)
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
-
-