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)
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 |
setSingle(ByteBuffer bytes)
Set the command output to a sequence of bytes, or null representing a simple string.
|
decodeAscii, get, getError, hasError, setError, setError, toStringpublic NestedMultiOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutputCommandOutput implementations must override this
method unless they only receive a byte array value.public void set(ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this
method unless they only receive an integer value which cannot be null.public void setSingle(ByteBuffer bytes)
CommandOutputCommandOutput
implementations can override this method unless they only receive an integer value which cannot be null.public void complete(int depth)
CommandOutputpublic void multi(int count)
CommandOutputCopyright © 2021 lettuce.io. All rights reserved.