Class KeyValueScoredValueOutput<K,​V>

  • Type Parameters:
    K - Key type.
    V - Value type.

    public class KeyValueScoredValueOutput<K,​V>
    extends CommandOutput<K,​V,​KeyValue<K,​ScoredValue<V>>>
    KeyValue encapsulating ScoredValue. See BZPOPMIN/BZPOPMAX commands.
    Since:
    5.1
    Author:
    Mark Paluch
    • Constructor Detail

      • KeyValueScoredValueOutput

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

      • 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,​KeyValue<K,​ScoredValue<V>>>
        Parameters:
        bytes - The command output, or null.
      • set

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