K
- Key type.V
- Value type.public class RedisStateMachine<K,V> extends Object
Constructor and Description |
---|
RedisStateMachine()
Initialize a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
decode(ByteBuf buffer,
CommandOutput<K,V,?> output)
Decode a command using the input buffer.
|
boolean |
decode(ByteBuf buffer,
RedisCommand<K,V,?> command,
CommandOutput<K,V,?> output)
Attempt to decode a redis response and return a flag indicating whether a complete response was read.
|
void |
reset() |
public boolean decode(ByteBuf buffer, CommandOutput<K,V,?> output)
buffer
- Buffer containing data from the server.output
- Current command output.public boolean decode(ByteBuf buffer, RedisCommand<K,V,?> command, CommandOutput<K,V,?> output)
buffer
- Buffer containing data from the server.command
- the command itselfoutput
- Current command output.public void reset()
Copyright © 2015. All rights reserved.