K
- Key type.V
- Value type.public class MultiOutput<K,V> extends CommandOutput<K,V,List<Object>>
codec, error, output
Constructor and Description |
---|
MultiOutput(RedisCodec<K,V> codec) |
Modifier and Type | Method and Description |
---|---|
void |
add(RedisCommand<K,V,?> cmd) |
void |
cancel() |
void |
complete(int depth)
Mark the command output complete.
|
void |
multi(int count) |
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.
|
decodeAscii, get, getError, hasError, setError, setSingle, toString
public MultiOutput(RedisCodec<K,V> codec)
public void add(RedisCommand<K,V,?> cmd)
public void cancel()
public void set(long integer)
CommandOutput
CommandOutput
implementations must override this
method unless they only receive a byte array value.public void set(ByteBuffer bytes)
CommandOutput
CommandOutput
implementations must override this
method unless they only receive an integer value which cannot be null.public void setError(ByteBuffer error)
CommandOutput
public void complete(int depth)
CommandOutput
Copyright © 2018 lettuce.io. All rights reserved.