public class ClientListArgs extends Object implements CompositeArgument
ClientListArgs
is a mutable object and instances should be used only once to avoid shared mutable state.
Modifier and Type | Class and Description |
---|---|
static class |
ClientListArgs.Builder
Builder entry points for
ClientListArgs . |
Constructor and Description |
---|
ClientListArgs() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs . |
ClientListArgs |
ids(long... ids)
Filter the clients with its client
ids . |
ClientListArgs |
type(io.lettuce.core.ClientListArgs.Type type)
This filters the connections of all the clients in the specified
ClientListArgs.Type . |
public ClientListArgs ids(long... ids)
ids
.ids
- client idsthis
ClientListArgs
.public ClientListArgs type(io.lettuce.core.ClientListArgs.Type type)
ClientListArgs.Type
. Note that clients blocked
into the MONITOR command are considered to belong to the normal class.type
- must not be null
.this
ClientListArgs
.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 © 2023 lettuce.io. All rights reserved.