Package io.lettuce.core
Class LMPopArgs
- java.lang.Object
-
- io.lettuce.core.LMPopArgs
-
- All Implemented Interfaces:
CompositeArgument
public class LMPopArgs extends Object implements CompositeArgument
Argument list builder for the Redis BLMPOP and LPOP commands. Static import the methods fromLMPopArgs.Builder
and chain the method calls:left().count(…)
.- Since:
- 6.2
- Author:
- Mark Paluch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LMPopArgs.Builder
Builder entry points forLMPopArgs
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
voidbuild(CommandArgs<K,V> args)
Build command arguments and contribute arguments toCommandArgs
.LMPopArgs
count(long count)
Set thecount
of entries to return.
-
-
-
Method Detail
-
count
public LMPopArgs count(long count)
Set thecount
of entries to return.- Parameters:
count
- number greater 0.- Returns:
this
-
build
public <K,V> void build(CommandArgs<K,V> args)
Description copied from interface:CompositeArgument
Build 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:
build
in interfaceCompositeArgument
- Type Parameters:
K
- Key type.V
- Value type.- Parameters:
args
- the command arguments, must not benull
.
-
-