K - Key type.V - Value type.public class MultiOutput<K,V> extends CommandOutput<K,V,TransactionResult>
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.
|
TransactionResult |
get()
Get the command output.
|
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 |
setBigNumber(ByteBuffer bytes)
Update the command output with a big number.
|
void |
setError(ByteBuffer error)
Set command output to an error message from the server.
|
void |
setSingle(ByteBuffer bytes)
Update the command output with a sequence of bytes, or
null representing a simple string. |
decodeAscii, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, setError, toStringpublic MultiOutput(RedisCodec<K,V> codec)
public void add(RedisCommand<K,V,?> cmd)
public void cancel()
public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.set in class CommandOutput<K,V,TransactionResult>integer - The command output.public void setSingle(ByteBuffer bytes)
CommandOutputnull representing a simple string. Concrete
CommandOutput implementations must override this method to decode single/bytes response values.setSingle in class CommandOutput<K,V,TransactionResult>bytes - The command output, or null.public void setBigNumber(ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this method to
decode big number response values.setBigNumber in class CommandOutput<K,V,TransactionResult>bytes - The command output, or null.public void set(double number)
CommandOutputCommandOutput implementations must override this
method to decode double response values.set in class CommandOutput<K,V,TransactionResult>number - The command output.public void set(ByteBuffer bytes)
CommandOutputnull. Concrete CommandOutput implementations must
override this method to decode bulk/bytes response values.set in class CommandOutput<K,V,TransactionResult>bytes - The command output, or null.public void multi(int count)
CommandOutputmulti in class CommandOutput<K,V,TransactionResult>count - expected number of elements in this multi sequence.public void setError(ByteBuffer error)
CommandOutputsetError in class CommandOutput<K,V,TransactionResult>error - Error message.public void complete(int depth)
CommandOutputcomplete in class CommandOutput<K,V,TransactionResult>depth - Remaining depth of output queue.public TransactionResult get()
CommandOutputget in class CommandOutput<K,V,TransactionResult>Copyright © 2025 lettuce.io. All rights reserved.