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 |
|---|---|
XAddArgs |
approximateTrimming()
Apply efficient trimming for capped streams using the
~ flag. |
XAddArgs |
approximateTrimming(boolean approximateTrimming)
Apply efficient trimming for capped streams using the
~ flag. |
<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.thispublic XAddArgs maxlen(long maxlen)
maxlen entries.maxlen - number greater 0.thispublic XAddArgs approximateTrimming()
~ flag.thispublic XAddArgs approximateTrimming(boolean approximateTrimming)
~ flag.approximateTrimming - true to apply efficient radix node trimming.thispublic <K,V> void build(CommandArgs<K,V> args)
Copyright © 2019 lettuce.io. All rights reserved.