public class XAddArgs extends Object
XAddArgs.Builder
and call the methods: maxlen(…)
.
XAddArgs
is a mutable object and instances should be used only once to avoid shared mutable state.Modifier and Type | Class and Description |
---|---|
static class |
XAddArgs.Builder
Builder entry points for
XAddArgs . |
Constructor and Description |
---|
XAddArgs() |
Modifier and Type | Method and Description |
---|---|
<K,V> void |
build(CommandArgs<K,V> args) |
XAddArgs |
id(String id)
Limit results to
maxlen entries. |
XAddArgs |
maxlen(long maxlen)
Limit stream to
maxlen entries. |
public XAddArgs id(String id)
maxlen
entries.id
- must not be null.this
public XAddArgs maxlen(long maxlen)
maxlen
entries.maxlen
- number greater 0.this
public <K,V> void build(CommandArgs<K,V> args)
Copyright © 2018 lettuce.io. All rights reserved.