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. |
decodeAscii, get, getError, hasError, multiArray, multiPush, multiSet, setError, setError, toString
public ObjectOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutput
CommandOutput
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)
CommandOutput
CommandOutput
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)
CommandOutput
CommandOutput
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)
CommandOutput
CommandOutput
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)
CommandOutput
null
. 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)
CommandOutput
null
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)
CommandOutput
complete
in class CommandOutput<K,V,Object>
depth
- Remaining depth of output queue.public void multi(int count)
CommandOutput
multi
in class CommandOutput<K,V,Object>
count
- expected number of elements in this multi sequence.public void multiMap(int count)
CommandOutput
multiMap
in class CommandOutput<K,V,Object>
count
- expected number of elements in this multi sequence.Copyright © 2023 lettuce.io. All rights reserved.