- Type Parameters:
K- Key type.V- Value type.
public class BooleanOutput<K,V> extends CommandOutput<K,V,Boolean>
Boolean output. The actual value is returned as an integer where 0 indicates false and 1 indicates true, or as a null bulk
reply for script output.
- Author:
- Will Glozer, Mark Paluch
-
Field Summary
Fields inherited from class io.lettuce.core.output.CommandOutput
codec, error, output -
Constructor Summary
Constructors Constructor Description BooleanOutput(RedisCodec<K,V> codec) -
Method Summary
Modifier and Type Method Description voidset(boolean value)Update the command output with a boolean.voidset(long integer)Update the command output with a 64-bit signed integer.voidset(ByteBuffer bytes)Update the command output with a sequence of bytes, ornull.Methods inherited from class io.lettuce.core.output.CommandOutput
complete, decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, set, setBigNumber, setError, setError, setSingle, toString
-
Constructor Details
-
BooleanOutput
-
-
Method Details
-
set
public void set(long integer)Description copied from class:CommandOutputUpdate the command output with a 64-bit signed integer. ConcreteCommandOutputimplementations must override this method to decodenumber(integer) response values.- Overrides:
setin classCommandOutput<K,V,Boolean>- Parameters:
integer- The command output.
-
set
Description copied from class:CommandOutputUpdate the command output with a sequence of bytes, ornull. ConcreteCommandOutputimplementations must override this method to decodebulk/bytes response values.- Overrides:
setin classCommandOutput<K,V,Boolean>- Parameters:
bytes- The command output, or null.
-
set
public void set(boolean value)Description copied from class:CommandOutputUpdate the command output with a boolean. ConcreteCommandOutputimplementations must override this method to decodebooleanresponse values.- Overrides:
setin classCommandOutput<K,V,Boolean>- Parameters:
value- The command output.
-