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)
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, getError, hasError, setError, setSingle, 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 unless they only receive a byte array value.set in class CommandOutput<K,V,TransactionResult>integer - The command output.public void set(ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this
method unless they only receive an integer value which cannot be null.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 © 2021 lettuce.io. All rights reserved.