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
ConstructorsConstructorDescriptionLMoveCommand(ByteBuffer sourceKey, ByteBuffer destinationKey, ReactiveListCommands.Direction from, ReactiveListCommands.Direction to) -
Method Summary
Modifier and TypeMethodDescriptionfrom(ByteBuffer sourceKey, ReactiveListCommands.Direction sourceDirection) Creates a newReactiveListCommands.LMoveCommandgiven asourceKey.getFrom()getTo()Applies thetimeout.to(ByteBuffer destinationKey, ReactiveListCommands.Direction direction) Applies thedestinationKey.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.LMoveCommandgiven asourceKey.- Parameters:
sourceKey- must not be null.sourceDirection- must not be null.- Returns:
- a new
ReactiveListCommands.LMoveCommandforvalue.
-
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.LMoveCommandwith 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.LMoveCommandwith pivot applied.
-
getDestinationKey
-
getFrom
-
getTo
-