public class MigrateArgs<K> extends Object
MigrateArgs.Builder and chain the method calls: copy().auth("foobar").
MigrateArgs is a mutable object and instances should be used only once to avoid shared mutable state.| Modifier and Type | Class and Description |
|---|---|
static class |
MigrateArgs.Builder
Builder entry points for
MigrateArgs. |
| Constructor and Description |
|---|
MigrateArgs() |
| Modifier and Type | Method and Description |
|---|---|
MigrateArgs<K> |
auth(char[] password)
Set AUTH
password option. |
MigrateArgs<K> |
auth(CharSequence password)
Set AUTH
password option. |
<V> void |
build(CommandArgs<K,V> args) |
MigrateArgs<K> |
copy()
Do not remove the key from the local instance by setting
COPY. |
MigrateArgs<K> |
key(K key)
Migrate a single
key. |
MigrateArgs<K> |
keys(Iterable<K> keys)
Migrate one or more
keys. |
MigrateArgs<K> |
keys(K... keys)
Migrate one or more
keys. |
MigrateArgs<K> |
replace()
Replace existing key on the remote instance by setting
REPLACE. |
public MigrateArgs<K> copy()
COPY.this MigrateArgs.public MigrateArgs<K> replace()
REPLACE.this MigrateArgs.public MigrateArgs<K> key(K key)
key.key - must not be null.this MigrateArgs.@SafeVarargs public final MigrateArgs<K> keys(K... keys)
keys.keys - must not be null.this MigrateArgs.public MigrateArgs<K> keys(Iterable<K> keys)
keys.keys - must not be null.this MigrateArgs.public MigrateArgs<K> auth(CharSequence password)
password option.password - must not be null.this MigrateArgs.public MigrateArgs<K> auth(char[] password)
password option.password - must not be null.this MigrateArgs.public <V> void build(CommandArgs<K,V> args)
Copyright © 2018 lettuce.io. All rights reserved.