K - Key type.V - Value type.public class NestedMultiOutput<K,V> extends CommandOutput<K,V,List<Object>>
List of command outputs, possibly deeply nested. Decodes simple strings through StringCodec.UTF8.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 |
multi(int count)
Mark the beginning of a multi sequence (array).
|
void |
set(ByteBuffer bytes)
Update the command output with a sequence of bytes, or
null. |
void |
set(double number)
Update the command output with a floating-point number.
|
void |
set(long integer)
Update the command output with a 64-bit signed integer.
|
void |
setSingle(ByteBuffer bytes)
Update the command output with a sequence of bytes, or
null representing a simple string. |
decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, setBigNumber, setError, setError, toStringpublic NestedMultiOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.public void set(double number)
CommandOutputCommandOutput implementations must override this
method to decode double response values.public void set(ByteBuffer bytes)
CommandOutputnull. Concrete CommandOutput implementations must
override this method to decode bulk/bytes response values.public void setSingle(ByteBuffer bytes)
CommandOutputnull representing a simple string. Concrete
CommandOutput implementations must override this method to decode single/bytes response values.public void complete(int depth)
CommandOutputpublic void multi(int count)
CommandOutputCopyright © 2021 lettuce.io. All rights reserved.