@UnstableApi public final class FixedRedisMessagePool extends Object implements RedisMessagePool
Modifier and Type | Class and Description |
---|---|
static class |
FixedRedisMessagePool.RedisErrorKey |
static class |
FixedRedisMessagePool.RedisReplyKey |
Modifier and Type | Field and Description |
---|---|
static FixedRedisMessagePool |
INSTANCE
A shared object for
FixedRedisMessagePool . |
public static final FixedRedisMessagePool INSTANCE
FixedRedisMessagePool
.public SimpleStringRedisMessage getSimpleString(String content)
RedisMessagePool
getSimpleString
in interface RedisMessagePool
public SimpleStringRedisMessage getSimpleString(FixedRedisMessagePool.RedisReplyKey key)
SimpleStringRedisMessage
for the given FixedRedisMessagePool.RedisReplyKey
or null
if it does not exist.public SimpleStringRedisMessage getSimpleString(ByteBuf content)
RedisMessagePool
getSimpleString
in interface RedisMessagePool
public ErrorRedisMessage getError(String content)
RedisMessagePool
getError
in interface RedisMessagePool
public ErrorRedisMessage getError(FixedRedisMessagePool.RedisErrorKey key)
ErrorRedisMessage
for the given FixedRedisMessagePool.RedisErrorKey
or null
if it does not exist.public ErrorRedisMessage getError(ByteBuf content)
RedisMessagePool
getError
in interface RedisMessagePool
public IntegerRedisMessage getInteger(long value)
RedisMessagePool
getInteger
in interface RedisMessagePool
public IntegerRedisMessage getInteger(ByteBuf content)
RedisMessagePool
getInteger
in interface RedisMessagePool
public byte[] getByteBufOfInteger(long value)
RedisMessagePool
byte[]
for given msg
. Returns null
it does not exist.getByteBufOfInteger
in interface RedisMessagePool
Copyright © 2008–2024 The Netty Project. All rights reserved.