public class NestedMultiOutput<K,V> extends CommandOutput<K,V,java.util.List<java.lang.Object>>
List of command outputs, possibly deeply nested.| Modifier and Type | Field and Description |
|---|---|
private int |
depth |
private java.util.LinkedList<java.util.List<java.lang.Object>> |
stack |
codec, error, output| Constructor and Description |
|---|
NestedMultiOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(int depth)
Mark the command output complete.
|
void |
set(java.nio.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(java.nio.ByteBuffer error)
Set command output to an error message from the server.
|
decodeAscii, get, getError, hasError, setErrorprivate java.util.LinkedList<java.util.List<java.lang.Object>> stack
private int depth
public NestedMultiOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutputCommandOutput implementations must override this method
unless they only receive a byte array value.set in class CommandOutput<K,V,java.util.List<java.lang.Object>>integer - The command output.public void set(java.nio.ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this method
unless they only receive an integer value which cannot be null.set in class CommandOutput<K,V,java.util.List<java.lang.Object>>bytes - The command output, or null.public void setError(java.nio.ByteBuffer error)
CommandOutputsetError in class CommandOutput<K,V,java.util.List<java.lang.Object>>error - Error message.public void complete(int depth)
CommandOutputcomplete in class CommandOutput<K,V,java.util.List<java.lang.Object>>depth - Remaining depth of output queue.