public class MultiOutput<K,V> extends CommandOutput<K,V,java.util.List<java.lang.Object>>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Queue<Command<K,V,?>> |
queue |
codec, error, output| Constructor and Description |
|---|
MultiOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Command<K,V,?> cmd) |
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, setErrorpublic MultiOutput(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.