public class SetArgs extends Object implements CompositeArgument
SetArgs.Builder
and chain the method calls: ex(10).nx()
.Modifier and Type | Class and Description |
---|---|
static class |
SetArgs.Builder |
Constructor and Description |
---|
SetArgs() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs . |
SetArgs |
ex(long ex) |
SetArgs |
nx() |
SetArgs |
px(long px) |
SetArgs |
xx() |
public SetArgs ex(long ex)
public SetArgs px(long px)
public SetArgs nx()
public SetArgs xx()
public <K,V> void build(CommandArgs<K,V> args)
CompositeArgument
CommandArgs
.
Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
build
in interface CompositeArgument
K
- Key type.V
- Value type.args
- the command arguments, must not be null.Copyright © 2018 lettuce.io. All rights reserved.