K - Key type.V - Value type.public class ObjectOutput<K,V> extends CommandOutput<K,V,Object>
StringCodec.UTF8.codec, error, output| Constructor and Description |
|---|
ObjectOutput(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 |
multiMap(int count)
Mark the beginning of a multi sequence (map).
|
void |
set(boolean value)
Update the command output with a boolean.
|
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 |
setSingle(ByteBuffer bytes)
Update the command output with a sequence of bytes, or
null representing a simple string. |
decodeString, get, getError, hasError, multiArray, multiPush, multiSet, setError, setError, toStringpublic ObjectOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.set in class CommandOutput<K,V,Object>integer - The command output.public void set(double number)
CommandOutputCommandOutput implementations must override this
method to decode double response values.set in class CommandOutput<K,V,Object>number - The command output.public void setBigNumber(ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this method to
decode big number response values.setBigNumber in class CommandOutput<K,V,Object>bytes - The command output, or null.public void set(boolean value)
CommandOutputCommandOutput implementations must override this method to
decode boolean response values.set in class CommandOutput<K,V,Object>value - 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,Object>bytes - The command output, or null.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,Object>bytes - The command output, or null.public void complete(int depth)
CommandOutputcomplete in class CommandOutput<K,V,Object>depth - Remaining depth of output queue.public void multi(int count)
CommandOutputmulti in class CommandOutput<K,V,Object>count - expected number of elements in this multi sequence.public void multiMap(int count)
CommandOutputmultiMap in class CommandOutput<K,V,Object>count - expected number of elements in this multi sequence.Copyright © 2025 lettuce.io. All rights reserved.