com.lambdaworks.redis.output
Class NestedMultiOutput<K,V>

java.lang.Object
  extended by com.lambdaworks.redis.protocol.CommandOutput<K,V,List<Object>>
      extended by com.lambdaworks.redis.output.NestedMultiOutput<K,V>

public class NestedMultiOutput<K,V>
extends CommandOutput<K,V,List<Object>>

List of command outputs, possibly deeply nested.

Author:
Will Glozer

Field Summary
 
Fields inherited from class com.lambdaworks.redis.protocol.CommandOutput
codec, error, output
 
Constructor Summary
NestedMultiOutput(RedisCodec<K,V> codec)
           
 
Method Summary
 void complete(int depth)
          Mark the command output complete.
 void set(ByteBuffer bytes)
          Set the command output to a sequence of bytes, or null.
 void set(long integer)
          Set the command output to a 64-bit signed integer.
 void setError(ByteBuffer error)
          Set command output to an error message from the server.
 
Methods inherited from class com.lambdaworks.redis.protocol.CommandOutput
decodeAscii, get, getError, hasError, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedMultiOutput

public NestedMultiOutput(RedisCodec<K,V> codec)
Method Detail

set

public void set(long integer)
Description copied from class: CommandOutput
Set the command output to a 64-bit signed integer. Concrete CommandOutput implementations must override this method unless they only receive a byte array value.

Overrides:
set in class CommandOutput<K,V,List<Object>>
Parameters:
integer - The command output.

set

public void set(ByteBuffer bytes)
Description copied from class: CommandOutput
Set the command output to a sequence of bytes, or null. Concrete CommandOutput implementations must override this method unless they only receive an integer value which cannot be null.

Overrides:
set in class CommandOutput<K,V,List<Object>>
Parameters:
bytes - The command output, or null.

setError

public void setError(ByteBuffer error)
Description copied from class: CommandOutput
Set command output to an error message from the server.

Overrides:
setError in class CommandOutput<K,V,List<Object>>
Parameters:
error - Error message.

complete

public void complete(int depth)
Description copied from class: CommandOutput
Mark the command output complete.

Overrides:
complete in class CommandOutput<K,V,List<Object>>
Parameters:
depth - Remaining depth of output queue.


Copyright © 2013. All Rights Reserved.