K - Key type.V - Value type.public class VoidOutput<K,V> extends CommandOutput<K,V,Void>
Void command output to consume data silently without actually processing it. Creating VoidCodec through its
constructor will preserve its error decoding since decoding errors is stateful. Obtaining VoidOutput through
create() will return an instance that does not decode errors.codec, error, output| Constructor and Description |
|---|
VoidOutput()
Initialize a new instance that decodes errors.
|
VoidOutput(RedisCodec<K,V> codec)
Initialize a new instance that decodes errors.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> VoidOutput<K,V> |
create()
Returns an instance of
VoidOutput coerced to the expected generics. |
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. |
complete, decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, setError, setError, toStringpublic VoidOutput()
public VoidOutput(RedisCodec<K,V> codec)
codec - used for type inference, must not be null.public static <K,V> VoidOutput<K,V> create()
VoidOutput coerced to the expected generics. Since this codec does not decode any data at
all, it's safe to use this way. Note that this method is only suitable for fire-and-forget usage since errors are not
decoded.K - Key type.V - Value type.VoidOutput instance.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,Void>bytes - The command output, or null.public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.set in class CommandOutput<K,V,Void>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,Void>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,Void>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,Void>number - The command output.public void set(boolean value)
CommandOutputCommandOutput implementations must override this method to
decode boolean response values.set in class CommandOutput<K,V,Void>value - The command output.Copyright © 2024 lettuce.io. All rights reserved.