Class ReactiveKeyCommands.CopyCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveKeyCommands.CopyCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveKeyCommands
MOVE command parameters.- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCopyCommand(@Nullable ByteBuffer key, @Nullable ByteBuffer target, boolean replace, @Nullable Integer database) -
Method Summary
Modifier and TypeMethodDescriptiondatabase(int database) Applies the database index.@Nullable Integer@Nullable ByteBufferbooleankey(ByteBuffer key) Creates a newReactiveKeyCommands.CopyCommandgiven akey.replace(boolean replace) Appliesreplace.to(ByteBuffer targetKey) Applies thetargetKey.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Constructor Details
-
CopyCommand
public CopyCommand(@Nullable ByteBuffer key, @Nullable ByteBuffer target, boolean replace, @Nullable Integer database)
-
-
Method Details
-
key
Creates a newReactiveKeyCommands.CopyCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveKeyCommands.CopyCommandforkey.
-
to
Applies thetargetKey. Constructs a new command instance with all previously configured properties.- Parameters:
targetKey- must not be null.- Returns:
- a new
ReactiveKeyCommands.CopyCommandwith database applied.
-
replace
Appliesreplace. Constructs a new command instance with all previously configured properties.- Parameters:
replace-- Returns:
- a new
ReactiveKeyCommands.CopyCommandwith replace applied.
-
database
Applies the database index. Constructs a new command instance with all previously configured properties.- Parameters:
database-- Returns:
- a new
ReactiveKeyCommands.CopyCommandwith database applied.
-
getTarget
- Returns:
- can be null.
-
isReplace
public boolean isReplace() -
getDatabase
- Returns:
- can be null.
-