public static class ReactiveKeyCommands.CopyCommand extends ReactiveRedisConnection.KeyCommand
MOVE command parameters.| Constructor and Description |
|---|
CopyCommand(ByteBuffer key,
ByteBuffer target,
boolean replace,
Integer database) |
| Modifier and Type | Method and Description |
|---|---|
ReactiveKeyCommands.CopyCommand |
database(int database)
Applies the database index.
|
Integer |
getDatabase() |
ByteBuffer |
getTarget() |
boolean |
isReplace() |
static ReactiveKeyCommands.CopyCommand |
key(ByteBuffer key)
Creates a new
ReactiveKeyCommands.CopyCommand given a key. |
ReactiveKeyCommands.CopyCommand |
replace(boolean replace)
Applies
replace. |
ReactiveKeyCommands.CopyCommand |
to(ByteBuffer targetKey)
Applies the
targetKey. |
getKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamepublic CopyCommand(ByteBuffer key, @Nullable ByteBuffer target, boolean replace, @Nullable Integer database)
public static ReactiveKeyCommands.CopyCommand key(ByteBuffer key)
ReactiveKeyCommands.CopyCommand given a key.key - must not be null.ReactiveKeyCommands.CopyCommand for key.public ReactiveKeyCommands.CopyCommand to(ByteBuffer targetKey)
targetKey. Constructs a new command instance with all previously configured
properties.targetKey - must not be null.ReactiveKeyCommands.CopyCommand with database applied.public ReactiveKeyCommands.CopyCommand replace(boolean replace)
replace. Constructs a new command instance with all previously configured properties.replace - ReactiveKeyCommands.CopyCommand with replace applied.public ReactiveKeyCommands.CopyCommand database(int database)
database - ReactiveKeyCommands.CopyCommand with database applied.@Nullable public ByteBuffer getTarget()
public boolean isReplace()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.