public class BLMovemArgs extends Object implements CompositeArgument
LMovemArgs and adds the mandatory timeout that BLMOVEM
places between them. Static import the methods from BLMovemArgs.Builder and chain the method calls:
leftRight().count(2, Ordering.BULK).timeout(1.5).
The timeout defaults to 0 (block indefinitely) when not set explicitly. This type intentionally does not
extend LMovemArgs so that it cannot be passed to the non-blocking lmovem command, which would emit an invalid
LMOVEM carrying a timeout.
| Modifier and Type | Class and Description |
|---|---|
static class |
BLMovemArgs.Builder
Builder entry points for
BLMovemArgs. |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
BLMovemArgs |
count(long count,
LMovemArgs.Ordering ordering)
Move up-to
count elements. |
BLMovemArgs |
exactly(long count,
LMovemArgs.Ordering ordering)
Move exactly
count elements or return an empty list if the source list does not have enough elements. |
BLMovemArgs |
timeout(double timeout)
Set the blocking
timeout in seconds, allowing for sub-second resolution. |
BLMovemArgs |
timeout(long timeout)
Set the blocking
timeout in seconds. |
public BLMovemArgs timeout(long timeout)
timeout in seconds.timeout - the timeout in seconds.this BLMovemArgs.public BLMovemArgs timeout(double timeout)
timeout in seconds, allowing for sub-second resolution.timeout - the timeout in seconds.this BLMovemArgs.public BLMovemArgs count(long count, LMovemArgs.Ordering ordering)
count elements. Follows the same semantics as the count parameter of LPOP.count - the maximum number of elements to move.ordering - the LMovemArgs.Ordering in which the elements are moved, must not be null.this BLMovemArgs.public BLMovemArgs exactly(long count, LMovemArgs.Ordering ordering)
count elements or return an empty list if the source list does not have enough elements.count - the exact number of elements to move.ordering - the LMovemArgs.Ordering in which the elements are moved, must not be null.this BLMovemArgs.public <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
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.
build in interface CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2026 lettuce.io. All rights reserved.