Class BooleanOutput<K,​V>

  • 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
    • Constructor Detail

      • BooleanOutput

        public BooleanOutput​(RedisCodec<K,​V> codec)
    • Method Detail

      • set

        public void set​(long integer)
        Description copied from class: CommandOutput
        Update the command output with a 64-bit signed integer. Concrete CommandOutput implementations must override this method to decode number (integer) response values.
        Overrides:
        set in class CommandOutput<K,​V,​Boolean>
        Parameters:
        integer - The command output.
      • set

        public void set​(ByteBuffer bytes)
        Description copied from class: CommandOutput
        Update the command output with a sequence of bytes, or null. Concrete CommandOutput implementations must override this method to decode bulk/bytes response values.
        Overrides:
        set in class CommandOutput<K,​V,​Boolean>
        Parameters:
        bytes - The command output, or null.
      • set

        public void set​(boolean value)
        Description copied from class: CommandOutput
        Update the command output with a boolean. Concrete CommandOutput implementations must override this method to decode boolean response values.
        Overrides:
        set in class CommandOutput<K,​V,​Boolean>
        Parameters:
        value - The command output.