K - Key type.V - Value type.public class CuckooInsertBooleanValueListOutput<K,V> extends ErrorTolerantBooleanValueListOutput<K,V>
List of Value-wrapped boolean output for the reactive CF.INSERTNX command.
Extends ErrorTolerantBooleanValueListOutput to add a 3-state mapping for the per-item integer response:
1 → Value.just(Boolean.TRUE) – item was added0 → Value.just(Boolean.FALSE) – item already exists-1) → Value.empty() – filter is full
The base class maps any non-1 integer to Value.just(false), which is correct for BF and CF.INSERT.
CF.INSERTNX additionally returns 0 for "already exists", so this subclass overrides set(long) to distinguish
0 (Value.just(false)) from negative (Value.empty()).
StreamingOutput.Subscriber<T>codec, error, output| Constructor and Description |
|---|
CuckooInsertBooleanValueListOutput(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 CuckooInsertBooleanValueListOutput(RedisCodec<K,V> codec)
public void set(long integer)
CommandOutputCommandOutput implementations must override this
method to decode number (integer) response values.set in class ErrorTolerantBooleanValueListOutput<K,V>integer - The command output.Copyright © 2026 lettuce.io. All rights reserved.