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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXPendingArgs.BuilderBuilder entry points forXPendingArgs. -
Constructor Summary
Constructors Constructor Description XPendingArgs() -
Method Summary
Modifier and Type Method Description <K, V> voidbuild(CommandArgs<K,V> args)Build command arguments and contribute arguments toCommandArgs.XPendingArgs<K>consumer(Consumer<K> consumer)XPendingArgs<K>idle(long milliseconds)Include only entries that are idle formilliseconds.XPendingArgs<K>idle(Duration timeout)Include only entries that are idle forDuration.XPendingArgs<K>limit(Limit limit)XPendingArgs<K>range(Range<String> range)
-
Constructor Details
-
XPendingArgs
public XPendingArgs()
-
-
Method Details
-
range
-
consumer
-
limit
-
idle
Include only entries that are idle forDuration.- Parameters:
timeout-- Returns:
thisXPendingArgs.
-
idle
Include only entries that are idle formilliseconds.- Parameters:
milliseconds-- Returns:
thisXPendingArgs.
-
build
Description copied from interface:CompositeArgumentBuild command arguments and contribute arguments toCommandArgs.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:
buildin interfaceCompositeArgument- Type Parameters:
K- Key type.V- Value type.- Parameters:
args- the command arguments, must not benull.
-