public static class ReactiveListCommands.LMoveCommand extends ReactiveRedisConnection.KeyCommand
LMOVE
command parameters.Constructor and Description |
---|
LMoveCommand(ByteBuffer sourceKey,
ByteBuffer destinationKey,
ReactiveListCommands.Direction from,
ReactiveListCommands.Direction to) |
Modifier and Type | Method and Description |
---|---|
static ReactiveListCommands.LMoveCommand |
from(ByteBuffer sourceKey,
ReactiveListCommands.Direction sourceDirection)
Creates a new
ReactiveListCommands.LMoveCommand given a sourceKey . |
ByteBuffer |
getDestinationKey() |
ReactiveListCommands.Direction |
getFrom() |
ReactiveListCommands.Direction |
getTo() |
ReactiveListCommands.BLMoveCommand |
timeout(Duration timeout)
Applies the
timeout . |
ReactiveListCommands.LMoveCommand |
to(ByteBuffer destinationKey,
ReactiveListCommands.Direction direction)
Applies the
destinationKey . |
getKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public LMoveCommand(@Nullable ByteBuffer sourceKey, @Nullable ByteBuffer destinationKey, @Nullable ReactiveListCommands.Direction from, @Nullable ReactiveListCommands.Direction to)
public static ReactiveListCommands.LMoveCommand from(ByteBuffer sourceKey, ReactiveListCommands.Direction sourceDirection)
ReactiveListCommands.LMoveCommand
given a sourceKey
.sourceKey
- must not be null.sourceDirection
- must not be null.ReactiveListCommands.LMoveCommand
for value
.public ReactiveListCommands.LMoveCommand to(ByteBuffer destinationKey, ReactiveListCommands.Direction direction)
destinationKey
. Constructs a new command instance with all previously configured
properties.destinationKey
- must not be null.direction
- must not be null.ReactiveListCommands.LMoveCommand
with pivot applied.public ReactiveListCommands.BLMoveCommand timeout(Duration timeout)
timeout
. Constructs a new command instance with all previously configured
properties.timeout
- must not be null.ReactiveListCommands.LMoveCommand
with pivot applied.@Nullable public ByteBuffer getDestinationKey()
@Nullable public ReactiveListCommands.Direction getFrom()
@Nullable public ReactiveListCommands.Direction getTo()
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.