Module lettuce.core

Class XPendingArgs<K>

java.lang.Object
io.lettuce.core.XPendingArgs<K>
All Implemented Interfaces:
CompositeArgument

public class XPendingArgs<K>
extends Object
implements CompositeArgument
Argument list builder for the Redis XPENDING command. Static import the methods from XPendingArgs.Builder and call the methods: block(…) .

XPendingArgs is a mutable object and instances should be used only once to avoid shared mutable state.

Since:
6.1
Author:
dengliming
  • Constructor Details

    • XPendingArgs

      public XPendingArgs()
  • Method Details

    • range

      public XPendingArgs<K> range​(Range<String> range)
    • consumer

      public XPendingArgs<K> consumer​(Consumer<K> consumer)
    • limit

      public XPendingArgs<K> limit​(Limit limit)
    • idle

      public XPendingArgs<K> idle​(Duration timeout)
      Include only entries that are idle for Duration.
      Parameters:
      timeout -
      Returns:
      this XPendingArgs.
    • idle

      public XPendingArgs<K> idle​(long milliseconds)
      Include only entries that are idle for milliseconds.
      Parameters:
      milliseconds -
      Returns:
      this XPendingArgs.
    • build

      public <K,​ V> void build​(CommandArgs<K,​V> args)
      Description copied from interface: CompositeArgument
      Build command arguments and contribute arguments to CommandArgs.

      Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.

      Specified by:
      build in interface CompositeArgument
      Type Parameters:
      K - Key type.
      V - Value type.
      Parameters:
      args - the command arguments, must not be null.