@UnstableApi public final class FixedRedisMessagePool extends Object implements RedisMessagePool
Modifier and Type | Field and Description |
---|---|
static FixedRedisMessagePool |
INSTANCE
A shared object for
FixedRedisMessagePool . |
Modifier and Type | Method and Description |
---|---|
byte[] |
getByteBufOfInteger(long value)
Returns
byte[] for given msg . |
ErrorRedisMessage |
getError(ByteBuf content)
Returns
ErrorRedisMessage for given content . |
ErrorRedisMessage |
getError(String content)
Returns
ErrorRedisMessage for given content . |
IntegerRedisMessage |
getInteger(ByteBuf content)
Returns
IntegerRedisMessage for given content . |
IntegerRedisMessage |
getInteger(long value)
Returns
IntegerRedisMessage for given value . |
SimpleStringRedisMessage |
getSimpleString(ByteBuf content)
Returns
SimpleStringRedisMessage for given content . |
SimpleStringRedisMessage |
getSimpleString(String content)
Returns
SimpleStringRedisMessage for given content . |
public static final FixedRedisMessagePool INSTANCE
FixedRedisMessagePool
.public SimpleStringRedisMessage getSimpleString(String content)
RedisMessagePool
getSimpleString
in interface RedisMessagePool
public SimpleStringRedisMessage getSimpleString(ByteBuf content)
RedisMessagePool
getSimpleString
in interface RedisMessagePool
public ErrorRedisMessage getError(String content)
RedisMessagePool
getError
in interface RedisMessagePool
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–2017 The Netty Project. All rights reserved.