com.lambdaworks.redis.protocol
Class RedisStateMachine<K,V>

java.lang.Object
  extended by com.lambdaworks.redis.protocol.RedisStateMachine<K,V>

public class RedisStateMachine<K,V>
extends Object

State machine that decodes redis server responses encoded according to the Unified Request Protocol.

Author:
Will Glozer

Constructor Summary
RedisStateMachine()
          Initialize a new instance.
 
Method Summary
 boolean decode(ChannelBuffer buffer, CommandOutput<K,V,?> output)
          Attempt to decode a redis response and return a flag indicating whether a complete response was read.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedisStateMachine

public RedisStateMachine()
Initialize a new instance.

Method Detail

decode

public boolean decode(ChannelBuffer buffer,
                      CommandOutput<K,V,?> output)
Attempt to decode a redis response and return a flag indicating whether a complete response was read.

Parameters:
buffer - Buffer containing data from the server.
output - Current command output.
Returns:
true if a complete response was read.


Copyright © 2013. All Rights Reserved.