Class ReactiveTransactionalRedisDataSourceImpl
java.lang.Object
io.quarkus.redis.runtime.datasource.ReactiveTransactionalRedisDataSourceImpl
- All Implemented Interfaces:
ReactiveTransactionalRedisDataSource
public class ReactiveTransactionalRedisDataSourceImpl
extends Object
implements ReactiveTransactionalRedisDataSource
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionautosuggest(Class<K> redisKeyType) Gets the object to emit commands from theauto-suggestgroup.Gets the object to execute commands manipulating bitmap data structures.<K,V> ReactiveTransactionalBloomCommands<K, V> Gets the object to manipulate Bloom filters.<K,V> ReactiveTransactionalCountMinCommands<K, V> Gets the object to manipulate Count-Min sketches.<K,V> ReactiveTransactionalCuckooCommands<K, V> Gets the object to manipulate Cuckoo filters.io.smallrye.mutiny.Uni<Void>discard()Discard the current transaction.booleanChecks if the current transaction has been discarded by the userio.smallrye.mutiny.Uni<Void>Executes a command.io.smallrye.mutiny.Uni<Void>Executes a command.io.smallrye.mutiny.Uni<Void>Executes a command.<K,V> ReactiveTransactionalGeoCommands<K, V> Gets the object to execute commands manipulating geo items (a.k.a.Gets the object to manipulate graphs.<K,F, V> ReactiveTransactionalHashCommands<K, F, V> Gets the object to execute commands manipulating hashes (a.k.a.<K,V> ReactiveTransactionalHyperLogLogCommands<K, V> hyperloglog(Class<K> redisKeyType, Class<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.Gets the object to manipulate JSON values.Gets the object to execute commands manipulating keys and expiration times.<K,V> ReactiveTransactionalListCommands<K, V> Gets the object to execute commands manipulating lists.Gets the object to emit commands from thesearchgroup.<K,V> ReactiveTransactionalSetCommands<K, V> Gets the object to execute commands manipulating sets.<K,V> ReactiveTransactionalSortedSetCommands<K, V> Gets the object to execute commands manipulating sorted sets.<K,F, V> ReactiveTransactionalStreamCommands<K, F, V> Gets the object to execute commands manipulating streams.<K,V> ReactiveTransactionalStringCommands<K, V> Gets the object to execute commands manipulating stored strings.timeseries(Class<K> redisKeyType) Gets the object to emit commands from thetime seriesgroup.<K,V> ReactiveTransactionalTopKCommands<K, V> Gets the object to manipulate Top-K list.<K,V> ReactiveTransactionalValueCommands<K, V> Gets the object to execute commands manipulating stored strings.
-
Constructor Details
-
ReactiveTransactionalRedisDataSourceImpl
public ReactiveTransactionalRedisDataSourceImpl(ReactiveRedisDataSource source, TransactionHolder th)
-
-
Method Details
-
discard
Description copied from interface:ReactiveTransactionalRedisDataSourceDiscard the current transaction.- Specified by:
discardin interfaceReactiveTransactionalRedisDataSource
-
discarded
public boolean discarded()Description copied from interface:ReactiveTransactionalRedisDataSourceChecks if the current transaction has been discarded by the user- Specified by:
discardedin interfaceReactiveTransactionalRedisDataSource- Returns:
- if the current transaction has been discarded by the user
-
hash
public <K,F, ReactiveTransactionalHashCommands<K,V> F, hashV> (Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating hashes (a.k.a.Map<F, V>).If you want to use a hash of
<String -> Person>stored using String identifier, you would use:hash(String.class, String.class, Person.class). If you want to use a hash of<String -> Person>stored using UUID identifier, you would use:hash(UUID.class, String.class, Person.class).- Specified by:
hashin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the redis keyF- the type of the fields (map's keys)V- the type of the value- Parameters:
redisKeyType- the class of the keystypeOfField- the class of the fieldstypeOfValue- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<K, V>).
-
geo
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating geo items (a.k.a.{longitude, latitude, member}).Vrepresents the type of the member, i.e. the localized thing.- Specified by:
geoin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the redis keyV- the type of the member- Parameters:
redisKeyType- the class of the keysmemberType- the class of the members- Returns:
- the object to execute geo commands.
-
sortedSet
public <K,V> ReactiveTransactionalSortedSetCommands<K,V> sortedSet(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating sorted sets.- Specified by:
sortedSetin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the keyV- the type of the value- Parameters:
redisKeyType- the type of the keysvalueType- the type of the value sorted in the sorted sets- Returns:
- the object to manipulate sorted sets.
-
value
public <K,V> ReactiveTransactionalValueCommands<K,V> value(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating stored strings.NOTE: Instead of
string, this group is namedvalueto avoid the confusion with the Java String type. Indeed, Redis strings can be strings, numbers, byte arrays...- Specified by:
valuein interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the keyV- the type of the value- Parameters:
redisKeyType- the type of the keysvalueType- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
string
public <K,V> ReactiveTransactionalStringCommands<K,V> string(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating stored strings.- Specified by:
stringin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the keyV- the type of the value- Parameters:
redisKeyType- the type of the keysvalueType- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
set
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating sets.- Specified by:
setin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the keyV- the type of the member- Parameters:
redisKeyType- the type of the keysmemberType- the type of the member stored in each set- Returns:
- the object to manipulate sets.
-
list
public <K,V> ReactiveTransactionalListCommands<K,V> list(Class<K> redisKeyType, Class<V> memberType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating lists.- Specified by:
listin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the keyV- the type of the member- Parameters:
redisKeyType- the type of the keysmemberType- the type of the member stored in each list- Returns:
- the object to manipulate sets.
-
hyperloglog
public <K,V> ReactiveTransactionalHyperLogLogCommands<K,V> hyperloglog(Class<K> redisKeyType, Class<V> memberType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating hyperloglog data structures.- Specified by:
hyperloglogin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the keyV- the type of the member- Parameters:
redisKeyType- the type of the keysmemberType- the type of the member stored in the data structure- Returns:
- the object to manipulate hyper log log data structures.
-
bitmap
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating bitmap data structures.- Specified by:
bitmapin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to manipulate bitmap data structures.
-
stream
public <K,F, ReactiveTransactionalStreamCommands<K,V> F, streamV> (Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating streams.- Specified by:
streamin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the redis keyF- the type of the fields (map's keys)V- the type of the value- Parameters:
redisKeyType- the class of the keystypeOfField- the class of the fieldstypeOfValue- the class of the values- Returns:
- the object to execute commands manipulating streams.
-
json
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to manipulate JSON values. This group requires the RedisJSON module.- Specified by:
jsonin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate JSON values.
-
bloom
public <K,V> ReactiveTransactionalBloomCommands<K,V> bloom(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Specified by:
bloomin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keyV- the type of value- Parameters:
redisKeyType- the type of the keyvalueType- the type of value to store in the filters- Returns:
- the object to manipulate Bloom filters
-
cuckoo
public <K,V> ReactiveTransactionalCuckooCommands<K,V> cuckoo(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Specified by:
cuckooin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keysV- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo values.
-
countmin
public <K,V> ReactiveTransactionalCountMinCommands<K,V> countmin(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Specified by:
countminin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keysV- the type of the values added into the count-min sketches- Returns:
- the object to manipulate count-min sketches.
-
topk
public <K,V> ReactiveTransactionalTopKCommands<K,V> topk(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Specified by:
topkin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keysV- the type of the values added into the top-k lists- Returns:
- the object to manipulate top-k lists.
-
graph
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to manipulate graphs. This group requires the RedisGraph module.- Specified by:
graphin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate graphs lists.
-
key
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to execute commands manipulating keys and expiration times.- Specified by:
keyin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to execute commands manipulating keys.
-
search
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to emit commands from thesearchgroup. This group requires the RedisSearch module.- Specified by:
searchin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to search documents
-
autosuggest
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to emit commands from theauto-suggestgroup. This group requires the RedisSearch module.- Specified by:
autosuggestin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to get suggestions
-
timeseries
Description copied from interface:ReactiveTransactionalRedisDataSourceGets the object to emit commands from thetime seriesgroup. This group requires the Redis Time Series module.- Specified by:
timeseriesin interfaceReactiveTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate time series
-
execute
Description copied from interface:ReactiveTransactionalRedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceReactiveTransactionalRedisDataSource- Parameters:
command- the command nameargs- the parameters, encoded as String.- Returns:
- the response
-
execute
public io.smallrye.mutiny.Uni<Void> execute(io.vertx.mutiny.redis.client.Command command, String... args) Description copied from interface:ReactiveTransactionalRedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceReactiveTransactionalRedisDataSource- Parameters:
command- the commandargs- the parameters, encoded as String.- Returns:
- the response
-
execute
Description copied from interface:ReactiveTransactionalRedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceReactiveTransactionalRedisDataSource- Parameters:
command- the commandargs- the parameters, encoded as String.- Returns:
- the response
-