Class ReactiveTransactionalCuckooCommandsImpl<K,V>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
-
- io.quarkus.redis.runtime.datasource.ReactiveTransactionalCuckooCommandsImpl<K,V>
-
- All Implemented Interfaces:
ReactiveTransactionalCuckooCommands<K,V>
,ReactiveTransactionalRedisCommands
public class ReactiveTransactionalCuckooCommandsImpl<K,V> extends AbstractTransactionalCommands implements ReactiveTransactionalCuckooCommands<K,V>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx
-
-
Constructor Summary
Constructors Constructor Description ReactiveTransactionalCuckooCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveCuckooCommandsImpl<K,V> reactive, TransactionHolder tx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
cfadd(K key, V value)
Execute the command CF.ADD.io.smallrye.mutiny.Uni<Void>
cfaddnx(K key, V value)
Execute the command CF.ADDNX.io.smallrye.mutiny.Uni<Void>
cfcount(K key, V value)
Execute the command CF.COUNT.io.smallrye.mutiny.Uni<Void>
cfdel(K key, V value)
Execute the command CF.DEL.io.smallrye.mutiny.Uni<Void>
cfexists(K key, V value)
Execute the command CF.EXISTS.io.smallrye.mutiny.Uni<Void>
cfinsert(K key, CfInsertArgs args, V... values)
Execute the command CF.INSERT.io.smallrye.mutiny.Uni<Void>
cfinsert(K key, V... values)
Execute the command CF.INSERT.io.smallrye.mutiny.Uni<Void>
cfinsertnx(K key, CfInsertArgs args, V... values)
Execute the command CF.INSERTNX.io.smallrye.mutiny.Uni<Void>
cfinsertnx(K key, V... values)
Execute the command CF.INSERTNX.io.smallrye.mutiny.Uni<Void>
cfmexists(K key, V... values)
Execute the command CF.MEXISTS.io.smallrye.mutiny.Uni<Void>
cfreserve(K key, long capacity)
Execute the command CF.RESERVE.io.smallrye.mutiny.Uni<Void>
cfreserve(K key, long capacity, CfReserveArgs args)
Execute the command CF.RESERVE.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscard
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
ReactiveTransactionalCuckooCommandsImpl
public ReactiveTransactionalCuckooCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveCuckooCommandsImpl<K,V> reactive, TransactionHolder tx)
-
-
Method Detail
-
cfadd
public io.smallrye.mutiny.Uni<Void> cfadd(K key, V value)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.ADD. Summary: Adds the specified element to the specified Cuckoo filter. Group: cuckooIf the cuckoo filter does not exist, it creates a new one.
- Specified by:
cfadd
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalue
- the value, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfaddnx
public io.smallrye.mutiny.Uni<Void> cfaddnx(K key, V value)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.ADDNX. Summary: Adds an item to a cuckoo filter if the item did not exist previously. Group: cuckooIf the cuckoo filter does not exist, it creates a new one.
- Specified by:
cfaddnx
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalue
- the value, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfcount
public io.smallrye.mutiny.Uni<Void> cfcount(K key, V value)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.COUNT. Summary: Returns the number of times an item may be in the filter. Because this is a probabilistic data structure, this may not necessarily be accurate. Group: cuckoo- Specified by:
cfcount
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalue
- the value, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfdel
public io.smallrye.mutiny.Uni<Void> cfdel(K key, V value)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.DEL. Summary: Deletes an item once from the filter. If the item exists only once, it will be removed from the filter. If the item was added multiple times, it will still be present. Group: cuckoo- Specified by:
cfdel
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalue
- the value, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfexists
public io.smallrye.mutiny.Uni<Void> cfexists(K key, V value)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.EXISTS. Summary: Check if an item exists in a Cuckoo filter Group: cuckoo- Specified by:
cfexists
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalue
- the value, must not benull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfinsert
public io.smallrye.mutiny.Uni<Void> cfinsert(K key, V... values)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.INSERT. Summary: Adds one or more items to a cuckoo filter, allowing the filter to be created with a custom capacity if it does not exist yet. Group: cuckoo- Specified by:
cfinsert
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalues
- the values, must not benull
, must not be empty, must not containnull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfinsert
public io.smallrye.mutiny.Uni<Void> cfinsert(K key, CfInsertArgs args, V... values)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.INSERT. Summary: Adds one or more items to a cuckoo filter, allowing the filter to be created with a custom capacity if it does not exist yet. Group: cuckoo- Specified by:
cfinsert
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyargs
- the extra argumentsvalues
- the values, must not benull
, must not be empty, must not containnull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfinsertnx
public io.smallrye.mutiny.Uni<Void> cfinsertnx(K key, V... values)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.INSERTNX. Summary: Adds one or more items to a cuckoo filter, allowing the filter to be created with a custom capacity if it does not exist yet. Group: cuckoo- Specified by:
cfinsertnx
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalues
- the values, must not benull
, must not be empty, must not containnull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfinsertnx
public io.smallrye.mutiny.Uni<Void> cfinsertnx(K key, CfInsertArgs args, V... values)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.INSERTNX. Summary: Adds one or more items to a cuckoo filter, allowing the filter to be created with a custom capacity if it does not exist yet. Group: cuckoo- Specified by:
cfinsertnx
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyargs
- the extra argumentsvalues
- the values, must not benull
, must not be empty, must not containnull
- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfmexists
public io.smallrye.mutiny.Uni<Void> cfmexists(K key, V... values)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.MEXISTS. Summary: Check if an item exists in a Cuckoo filter Group: cuckoo- Specified by:
cfmexists
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keyvalues
- the values, must not benull
, must not containnull
, must not be empty- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfreserve
public io.smallrye.mutiny.Uni<Void> cfreserve(K key, long capacity)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.RESERVE. Summary: Create a Cuckoo Filter as key with a single sub-filter for the initial amount of capacity for items. Group: cuckoo- Specified by:
cfreserve
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keycapacity
- the capacity- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
cfreserve
public io.smallrye.mutiny.Uni<Void> cfreserve(K key, long capacity, CfReserveArgs args)
Description copied from interface:ReactiveTransactionalCuckooCommands
Execute the command CF.RESERVE. Summary: Create a Cuckoo Filter as key with a single sub-filter for the initial amount of capacity for items. Group: cuckoo- Specified by:
cfreserve
in interfaceReactiveTransactionalCuckooCommands<K,V>
- Parameters:
key
- the keycapacity
- the capacityargs
- the extra parameters- Returns:
- A
Uni
emittingnull
when the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
-