Class ReactiveListCommands.LMoveCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveListCommands.LMoveCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Direct Known Subclasses:
ReactiveListCommands.BLMoveCommand
- Enclosing interface:
- ReactiveListCommands
LMOVE
command parameters.- Since:
- 2.6
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorDescriptionLMoveCommand
(ByteBuffer sourceKey, ByteBuffer destinationKey, ReactiveListCommands.Direction from, ReactiveListCommands.Direction to) -
Method Summary
Modifier and TypeMethodDescriptionfrom
(ByteBuffer sourceKey, ReactiveListCommands.Direction sourceDirection) Creates a newReactiveListCommands.LMoveCommand
given asourceKey
.getFrom()
getTo()
Applies thetimeout
.to
(ByteBuffer destinationKey, ReactiveListCommands.Direction direction) Applies thedestinationKey
.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Constructor Details
-
LMoveCommand
public LMoveCommand(@Nullable ByteBuffer sourceKey, @Nullable ByteBuffer destinationKey, @Nullable ReactiveListCommands.Direction from, @Nullable ReactiveListCommands.Direction to)
-
-
Method Details
-
from
public static ReactiveListCommands.LMoveCommand from(ByteBuffer sourceKey, ReactiveListCommands.Direction sourceDirection) Creates a newReactiveListCommands.LMoveCommand
given asourceKey
.- Parameters:
sourceKey
- must not be null.sourceDirection
- must not be null.- Returns:
- a new
ReactiveListCommands.LMoveCommand
forvalue
.
-
to
public ReactiveListCommands.LMoveCommand to(ByteBuffer destinationKey, ReactiveListCommands.Direction direction) Applies thedestinationKey
. Constructs a new command instance with all previously configured properties.- Parameters:
destinationKey
- must not be null.direction
- must not be null.- Returns:
- a new
ReactiveListCommands.LMoveCommand
with pivot applied.
-
timeout
Applies thetimeout
. Constructs a new command instance with all previously configured properties.- Parameters:
timeout
- must not be null.- Returns:
- a new
ReactiveListCommands.LMoveCommand
with pivot applied.
-
getDestinationKey
-
getFrom
-
getTo
-