public class KillArgs extends Object
KillArgs.Builder
and chain the method calls: id(1).skipme()
.
KillArgs
is a mutable object and instances should be used only once to avoid shared mutable state.Modifier and Type | Class and Description |
---|---|
static class |
KillArgs.Builder
Builder entry points for
KillArgs . |
Constructor and Description |
---|
KillArgs() |
Modifier and Type | Method and Description |
---|---|
KillArgs |
addr(String addr)
Kill the client at
addr . |
<K,V> void |
build(CommandArgs<K,V> args) |
KillArgs |
id(long id)
Kill the client with its client
id . |
KillArgs |
skipme()
By default this option is enabled, that is, the client calling the command will not get killed, however setting this
option to no will have the effect of also killing the client calling the command.
|
KillArgs |
skipme(boolean state)
By default this option is enabled, that is, the client calling the command will not get killed, however setting this
option to no will have the effect of also killing the client calling the command.
|
KillArgs |
type(com.lambdaworks.redis.KillArgs.Type type)
This closes the connections of all the clients in the specified
class . |
public KillArgs skipme()
this
MigrateArgs
.public KillArgs skipme(boolean state)
state
- this
KillArgs
.public KillArgs addr(String addr)
addr
.addr
- must not be null.this
KillArgs
.public KillArgs id(long id)
id
.id
- this
KillArgs
.public KillArgs type(com.lambdaworks.redis.KillArgs.Type type)
class
. Note that clients blocked into the
MONITOR command are considered to belong to the normal class.type
- must not be null.this
KillArgs
.public <K,V> void build(CommandArgs<K,V> args)
Copyright © 2018 lettuce.io. All rights reserved.