K - Key type.V - Value type.public class CuckooInsertBooleanListOutput<K,V> extends ErrorTolerantBooleanListOutput<K,V>
List of boolean output for the CF.INSERTNX command.
Extends ErrorTolerantBooleanListOutput to add a 3-state mapping for the per-item integer response:
1 → Boolean.TRUE – item was added0 → Boolean.FALSE – item already exists-1) → null – filter is full
The base class maps any non-1 integer to false, which is correct for BF and CF.INSERT (where -1
simply means "not added"). CF.INSERTNX additionally returns 0 for "already exists", so this subclass overrides
set(long) to distinguish 0 (false) from negative (null).
StreamingOutput.Subscriber<T>codec, error, output| Constructor and Description |
|---|
CuckooInsertBooleanListOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
void |
set(long integer)
Update the command output with a 64-bit signed integer.
|
getSubscriber, multi, set, set, setError, setSubscribercomplete, decodeString, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, setBigNumber, setError, setSingle, toStringpublic CuckooInsertBooleanListOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.set in class ErrorTolerantBooleanListOutput<K,V>integer - The command output.Copyright © 2026 lettuce.io. All rights reserved.