public class TopKReserveArgs extends Object implements CompositeArgument
TopKReserveArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
TopKReserveArgs.Builder
Builder entry points for
TopKReserveArgs. |
| Constructor and Description |
|---|
TopKReserveArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
TopKReserveArgs |
decay(double decay)
Sets the decay of the filter.
|
TopKReserveArgs |
depth(long depth)
Sets the depth of the filter.
|
TopKReserveArgs |
width(long width)
Sets the width of the filter.
|
public TopKReserveArgs width(long width)
width - the width of the filterthis TopKReserveArgspublic TopKReserveArgs depth(long depth)
depth - the depth of the filterthis TopKReserveArgspublic TopKReserveArgs decay(double decay)
decay - the decay of the filterthis TopKReserveArgspublic <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
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 CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2026 lettuce.io. All rights reserved.