public class BfInsertArgs extends Object implements CompositeArgument
BfInsertArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
BfInsertArgs.Builder
Builder entry points for
BfInsertArgs. |
| Constructor and Description |
|---|
BfInsertArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
BfInsertArgs |
capacity(long capacity)
Set the desired capacity of the filter.
|
BfInsertArgs |
defaults()
Set the default settings.
|
BfInsertArgs |
error(double error)
Set the desired error rate of the filter.
|
BfInsertArgs |
expansion(long expansion)
Set the expansion rate of the filter.
|
BfInsertArgs |
noCreate()
Set the no create flag.
|
BfInsertArgs |
nonScaling()
Set the non scaling flag.
|
public BfInsertArgs capacity(long capacity)
this BfInsertArgs.public BfInsertArgs error(double error)
this BfInsertArgs.public BfInsertArgs expansion(long expansion)
this BfInsertArgs.public BfInsertArgs noCreate()
this BfInsertArgs.public BfInsertArgs nonScaling()
this BfInsertArgs.public BfInsertArgs defaults()
this BfInsertArgs.public <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.