java.lang.Object
io.lettuce.core.output.CommandOutput<K,V,List<Object>>
io.lettuce.core.output.NestedMultiOutput<K,V>
- Type Parameters:
K- Key type.V- Value type.
- Direct Known Subclasses:
ArrayOutput,PushOutput
public class NestedMultiOutput<K,V> extends CommandOutput<K,V,List<Object>>
List of command outputs, possibly deeply nested. Decodes simple strings through StringCodec.UTF8.- Author:
- Will Glozer, Mark Paluch, Julien Ruaux
-
Field Summary
Fields inherited from class io.lettuce.core.output.CommandOutput
codec, error, output -
Constructor Summary
Constructors Constructor Description NestedMultiOutput(RedisCodec<K,V> codec) -
Method Summary
Modifier and Type Method Description voidcomplete(int depth)Mark the command output complete.voidmulti(int count)Mark the beginning of a multi sequence (array).voidset(double number)Update the command output with a floating-point number.voidset(long integer)Update the command output with a 64-bit signed integer.voidset(ByteBuffer bytes)Update the command output with a sequence of bytes, ornull.voidsetSingle(ByteBuffer bytes)Update the command output with a sequence of bytes, ornullrepresenting a simple string.Methods inherited from class io.lettuce.core.output.CommandOutput
decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, setBigNumber, setError, setError, toString
-
Constructor Details
-
NestedMultiOutput
-
-
Method Details
-
set
public void set(long integer)Description copied from class:CommandOutputUpdate the command output with a 64-bit signed integer. ConcreteCommandOutputimplementations must override this method to decodenumber(integer) response values. -
set
public void set(double number)Description copied from class:CommandOutputUpdate the command output with a floating-point number. ConcreteCommandOutputimplementations must override this method to decodedoubleresponse values. -
set
Description copied from class:CommandOutputUpdate the command output with a sequence of bytes, ornull. ConcreteCommandOutputimplementations must override this method to decodebulk/bytes response values. -
setSingle
Description copied from class:CommandOutputUpdate the command output with a sequence of bytes, ornullrepresenting a simple string. ConcreteCommandOutputimplementations must override this method to decodesingle/bytes response values. -
complete
public void complete(int depth)Description copied from class:CommandOutputMark the command output complete. -
multi
public void multi(int count)Description copied from class:CommandOutputMark the beginning of a multi sequence (array).
-