public class SortArgs extends Object implements CompositeArgument
SortArgs.Builder
and chain the method calls: by("weight_*").desc().limit(0, 2)
.Modifier and Type | Class and Description |
---|---|
static class |
SortArgs.Builder
Static builder methods.
|
Constructor and Description |
---|
SortArgs() |
Modifier and Type | Method and Description |
---|---|
SortArgs |
alpha() |
SortArgs |
asc() |
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs . |
SortArgs |
by(String pattern) |
SortArgs |
desc() |
SortArgs |
get(String pattern) |
SortArgs |
limit(Limit limit) |
SortArgs |
limit(long offset,
long count) |
public SortArgs limit(long offset, long count)
public SortArgs asc()
public SortArgs desc()
public SortArgs alpha()
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 © 2017 lettuce.io. All rights reserved.