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.- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCopyCommand(ByteBuffer key, ByteBuffer target, boolean replace, Integer database) -
Method Summary
Modifier and TypeMethodDescriptiondatabase(int database) Applies the database index.booleankey(ByteBuffer key) Creates a newReactiveKeyCommands.CopyCommandgiven akey.replace(boolean replace) Appliesreplace.to(ByteBuffer targetKey) Applies thetargetKey.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
-
CopyCommand
public CopyCommand(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.
-