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 SummaryConstructorsConstructorDescriptionCopyCommand(ByteBuffer key, ByteBuffer target, boolean replace, Integer database) 
- 
Method SummaryModifier 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.KeyCommandgetKeyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.CommandgetName
- 
Constructor Details- 
CopyCommandpublic CopyCommand(ByteBuffer key, @Nullable ByteBuffer target, boolean replace, @Nullable Integer database) 
 
- 
- 
Method Details- 
keyCreates a newReactiveKeyCommands.CopyCommandgiven akey.- Parameters:
- key- must not be null.
- Returns:
- a new ReactiveKeyCommands.CopyCommandforkey.
 
- 
toApplies thetargetKey. Constructs a new command instance with all previously configured properties.- Parameters:
- targetKey- must not be null.
- Returns:
- a new ReactiveKeyCommands.CopyCommandwith database applied.
 
- 
replaceAppliesreplace. Constructs a new command instance with all previously configured properties.- Parameters:
- replace-
- Returns:
- a new ReactiveKeyCommands.CopyCommandwith replace applied.
 
- 
databaseApplies 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.
 
- 
isReplacepublic boolean isReplace()
- 
getDatabase- Returns:
- can be null.
 
 
-