Interface ReactiveTransactionalRedisDataSource
-
- All Known Implementing Classes:
ReactiveTransactionalRedisDataSourceImpl
public interface ReactiveTransactionalRedisDataSourceRedis Data Source object used to execute commands in a Redis transaction (MULTI). Note that the results of the enqueued commands are not available until the completion of the transaction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default ReactiveTransactionalAutoSuggestCommands<String>autosuggest()Gets the object to emit commands from theauto-suggestgroup.<K> ReactiveTransactionalAutoSuggestCommands<K>autosuggest(Class<K> redisKeyType)Gets the object to emit commands from theauto-suggestgroup.default ReactiveTransactionalBitMapCommands<String>bitmap()Gets the object to execute commands manipulating bitmap data structures.<K> ReactiveTransactionalBitMapCommands<K>bitmap(Class<K> redisKeyType)Gets the object to execute commands manipulating bitmap data structures.<K,V>
ReactiveTransactionalBloomCommands<K,V>bloom(Class<K> redisKeyType, Class<V> valueType)Gets the object to manipulate Bloom filters.default <V> ReactiveTransactionalBloomCommands<String,V>bloom(Class<V> valueType)Gets the object to manipulate Bloom filters.<K,V>
ReactiveTransactionalCountMinCommands<K,V>countmin(Class<K> redisKeyType, Class<V> valueType)Gets the object to manipulate Count-Min sketches.default <V> ReactiveTransactionalCountMinCommands<String,V>countmin(Class<V> valueType)Gets the object to manipulate Count-Min sketches.<K,V>
ReactiveTransactionalCuckooCommands<K,V>cuckoo(Class<K> redisKeyType, Class<V> valueType)Gets the object to manipulate Cuckoo filters.default <V> ReactiveTransactionalCuckooCommands<String,V>cuckoo(Class<V> valueType)Gets the object to manipulate Cuckoo filters.io.smallrye.mutiny.Uni<Void>discard()Discard the current transaction.booleandiscarded()Checks if the current transaction has been discarded by the userio.smallrye.mutiny.Uni<Void>execute(io.vertx.mutiny.redis.client.Command command, String... args)Executes a command.io.smallrye.mutiny.Uni<Void>execute(io.vertx.redis.client.Command command, String... args)Executes a command.io.smallrye.mutiny.Uni<Void>execute(String command, String... args)Executes a command.<K,V>
ReactiveTransactionalGeoCommands<K,V>geo(Class<K> redisKeyType, Class<V> memberType)Gets the object to execute commands manipulating geo items (a.k.a.default <V> ReactiveTransactionalGeoCommands<String,V>geo(Class<V> memberType)Gets the object to execute commands manipulating geo items (a.k.a.default ReactiveTransactionalGraphCommands<String>graph()Gets the object to manipulate graphs.<K> ReactiveTransactionalGraphCommands<K>graph(Class<K> redisKeyType)Gets the object to manipulate graphs.<K,F,V>
ReactiveTransactionalHashCommands<K,F,V>hash(Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue)Gets the object to execute commands manipulating hashes (a.k.a.default <V> ReactiveTransactionalHashCommands<String,String,V>hash(Class<V> typeOfValue)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.default <V> ReactiveTransactionalHyperLogLogCommands<String,V>hyperloglog(Class<V> memberType)Gets the object to execute commands manipulating hyperloglog data structures.default ReactiveTransactionalJsonCommands<String>json()Gets the object to manipulate JSON values.<K> ReactiveTransactionalJsonCommands<K>json(Class<K> redisKeyType)Gets the object to manipulate JSON values.default ReactiveTransactionalKeyCommands<String>key()Gets the object to execute commands manipulating keys and expiration times.<K> ReactiveTransactionalKeyCommands<K>key(Class<K> redisKeyType)Gets the object to execute commands manipulating keys and expiration times.<K,V>
ReactiveTransactionalListCommands<K,V>list(Class<K> redisKeyType, Class<V> memberType)Gets the object to execute commands manipulating lists.default <V> ReactiveTransactionalListCommands<String,V>list(Class<V> memberType)Gets the object to execute commands manipulating lists.default ReactiveTransactionalSearchCommandssearch()Gets the object to emit commands from thesearchgroup.<K> ReactiveTransactionalSearchCommandssearch(Class<K> redisKeyType)Gets the object to emit commands from thesearchgroup.<K,V>
ReactiveTransactionalSetCommands<K,V>set(Class<K> redisKeyType, Class<V> memberType)Gets the object to execute commands manipulating sets.default <V> ReactiveTransactionalSetCommands<String,V>set(Class<V> memberType)Gets the object to execute commands manipulating sets.<K,V>
ReactiveTransactionalSortedSetCommands<K,V>sortedSet(Class<K> redisKeyType, Class<V> valueType)Gets the object to execute commands manipulating sorted sets.default <V> ReactiveTransactionalSortedSetCommands<String,V>sortedSet(Class<V> valueType)Gets the object to execute commands manipulating sorted sets.<K,F,V>
ReactiveTransactionalStreamCommands<K,F,V>stream(Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue)Gets the object to execute commands manipulating streams.default <V> ReactiveTransactionalStreamCommands<String,String,V>stream(Class<V> typeOfValue)Gets the object to execute commands manipulating stream..<K,V>
ReactiveTransactionalStringCommands<K,V>string(Class<K> redisKeyType, Class<V> valueType)Deprecated.Usevalue(Class, Class)insteaddefault <V> ReactiveTransactionalStringCommands<String,V>string(Class<V> valueType)Deprecated.Usevalue(Class)insteaddefault ReactiveTransactionalTimeSeriesCommands<String>timeseries()Gets the object to emit commands from thetime seriesgroup.<K> ReactiveTransactionalTimeSeriesCommands<K>timeseries(Class<K> redisKeyType)Gets the object to emit commands from thetime seriesgroup.<K,V>
ReactiveTransactionalTopKCommands<K,V>topk(Class<K> redisKeyType, Class<V> valueType)Gets the object to manipulate Top-K list.default <V> ReactiveTransactionalTopKCommands<String,V>topk(Class<V> valueType)Gets the object to manipulate Top-K list.<K,V>
ReactiveTransactionalValueCommands<K,V>value(Class<K> redisKeyType, Class<V> valueType)Gets the object to execute commands manipulating stored strings.default <V> ReactiveTransactionalValueCommands<String,V>value(Class<V> valueType)Gets the object to execute commands manipulating stored strings.
-
-
-
Method Detail
-
discard
io.smallrye.mutiny.Uni<Void> discard()
Discard the current transaction.
-
discarded
boolean discarded()
Checks if the current transaction has been discarded by the user- Returns:
- if the current transaction has been discarded by the user
-
hash
<K,F,V> ReactiveTransactionalHashCommands<K,F,V> hash(Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue)
Gets 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).- 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>).
-
hash
default <V> ReactiveTransactionalHashCommands<String,String,V> hash(Class<V> typeOfValue)
Gets the object to execute commands manipulating hashes (a.k.a.Map<String, V>).This is a shortcut on
hash(String.class, String.class, V)- Type Parameters:
V- the type of the value- Parameters:
typeOfValue- the class of the values- Returns:
- the object to execute commands manipulating hashes (a.k.a.
Map<String, V>).
-
geo
<K,V> ReactiveTransactionalGeoCommands<K,V> geo(Class<K> redisKeyType, Class<V> memberType)
Gets 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.- 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.
-
geo
default <V> ReactiveTransactionalGeoCommands<String,V> geo(Class<V> memberType)
Gets 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.- Type Parameters:
V- the type of the member- Parameters:
memberType- the class of the members- Returns:
- the object to execute geo commands.
-
key
<K> ReactiveTransactionalKeyCommands<K> key(Class<K> redisKeyType)
Gets the object to execute commands manipulating keys and expiration times.- Type Parameters:
K- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to execute commands manipulating keys.
-
key
default ReactiveTransactionalKeyCommands<String> key()
Gets the object to execute commands manipulating keys and expiration times.- Returns:
- the object to execute commands manipulating keys.
-
sortedSet
<K,V> ReactiveTransactionalSortedSetCommands<K,V> sortedSet(Class<K> redisKeyType, Class<V> valueType)
Gets the object to execute commands manipulating sorted sets.- 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.
-
sortedSet
default <V> ReactiveTransactionalSortedSetCommands<String,V> sortedSet(Class<V> valueType)
Gets the object to execute commands manipulating sorted sets.- Type Parameters:
V- the type of the value- Parameters:
valueType- the type of the value sorted in the sorted sets- Returns:
- the object to manipulate sorted sets.
-
value
<K,V> ReactiveTransactionalValueCommands<K,V> value(Class<K> redisKeyType, Class<V> valueType)
Gets 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...- 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.
-
value
default <V> ReactiveTransactionalValueCommands<String,V> value(Class<V> valueType)
Gets 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...- Type Parameters:
V- the type of the value- Parameters:
valueType- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
string
@Deprecated <K,V> ReactiveTransactionalStringCommands<K,V> string(Class<K> redisKeyType, Class<V> valueType)
Deprecated.Usevalue(Class, Class)insteadGets the object to execute commands manipulating stored strings.- 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
@Deprecated default <V> ReactiveTransactionalStringCommands<String,V> string(Class<V> valueType)
Deprecated.Usevalue(Class)insteadGets the object to execute commands manipulating stored strings.- Type Parameters:
V- the type of the value- Parameters:
valueType- the type of the value, often String, or the value are encoded/decoded using codecs.- Returns:
- the object to manipulate stored strings.
-
set
<K,V> ReactiveTransactionalSetCommands<K,V> set(Class<K> redisKeyType, Class<V> memberType)
Gets the object to execute commands manipulating sets.- 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.
-
set
default <V> ReactiveTransactionalSetCommands<String,V> set(Class<V> memberType)
Gets the object to execute commands manipulating sets.- Type Parameters:
V- the type of the member- Parameters:
memberType- the type of the member stored in each set- Returns:
- the object to manipulate sets.
-
list
<K,V> ReactiveTransactionalListCommands<K,V> list(Class<K> redisKeyType, Class<V> memberType)
Gets the object to execute commands manipulating lists.- 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.
-
list
default <V> ReactiveTransactionalListCommands<String,V> list(Class<V> memberType)
Gets the object to execute commands manipulating lists.- Type Parameters:
V- the type of the member- Parameters:
memberType- the type of the member stored in each list- Returns:
- the object to manipulate sets.
-
hyperloglog
<K,V> ReactiveTransactionalHyperLogLogCommands<K,V> hyperloglog(Class<K> redisKeyType, Class<V> memberType)
Gets the object to execute commands manipulating hyperloglog data structures.- 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.
-
hyperloglog
default <V> ReactiveTransactionalHyperLogLogCommands<String,V> hyperloglog(Class<V> memberType)
Gets the object to execute commands manipulating hyperloglog data structures.- Type Parameters:
V- the type of the member- Parameters:
memberType- the type of the member stored in the data structure- Returns:
- the object to manipulate hyper log log data structures.
-
bitmap
<K> ReactiveTransactionalBitMapCommands<K> bitmap(Class<K> redisKeyType)
Gets the object to execute commands manipulating bitmap data structures.- Type Parameters:
K- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to manipulate bitmap data structures.
-
bitmap
default ReactiveTransactionalBitMapCommands<String> bitmap()
Gets the object to execute commands manipulating bitmap data structures.- Returns:
- the object to manipulate bitmap data structures.
-
stream
<K,F,V> ReactiveTransactionalStreamCommands<K,F,V> stream(Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue)
Gets the object to execute commands manipulating streams.- 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.
-
stream
default <V> ReactiveTransactionalStreamCommands<String,String,V> stream(Class<V> typeOfValue)
Gets the object to execute commands manipulating stream..This is a shortcut on
stream(String.class, String.class, V)- Type Parameters:
V- the type of the value- Parameters:
typeOfValue- the class of the values- Returns:
- the object to execute commands manipulating streams.
-
json
default ReactiveTransactionalJsonCommands<String> json()
Gets the object to manipulate JSON values. This group requires the RedisJSON module.- Returns:
- the object to manipulate JSON values.
-
json
<K> ReactiveTransactionalJsonCommands<K> json(Class<K> redisKeyType)
Gets the object to manipulate JSON values. This group requires the RedisJSON module.- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate JSON values.
-
bloom
default <V> ReactiveTransactionalBloomCommands<String,V> bloom(Class<V> valueType)
Gets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Type Parameters:
V- the type of value- Parameters:
valueType- the type of value to store in the filters- Returns:
- the object to manipulate Bloom filters
-
bloom
<K,V> ReactiveTransactionalBloomCommands<K,V> bloom(Class<K> redisKeyType, Class<V> valueType)
Gets the object to manipulate Bloom filters. This group requires the RedisBloom module.- 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
default <V> ReactiveTransactionalCuckooCommands<String,V> cuckoo(Class<V> valueType)
Gets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Type Parameters:
V- the type of the values added into the Cuckoo filter- Returns:
- the object to manipulate Cuckoo values.
-
cuckoo
<K,V> ReactiveTransactionalCuckooCommands<K,V> cuckoo(Class<K> redisKeyType, Class<V> valueType)
Gets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- 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
default <V> ReactiveTransactionalCountMinCommands<String,V> countmin(Class<V> valueType)
Gets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Type Parameters:
V- the type of the values added into the count-min sketches- Returns:
- the object to manipulate count-min sketches.
-
countmin
<K,V> ReactiveTransactionalCountMinCommands<K,V> countmin(Class<K> redisKeyType, Class<V> valueType)
Gets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- 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
default <V> ReactiveTransactionalTopKCommands<String,V> topk(Class<V> valueType)
Gets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Type Parameters:
V- the type of the values added into the top-k lists- Returns:
- the object to manipulate top-k lists.
-
topk
<K,V> ReactiveTransactionalTopKCommands<K,V> topk(Class<K> redisKeyType, Class<V> valueType)
Gets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- 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
@Experimental("The Redis graph support is experimental") default ReactiveTransactionalGraphCommands<String> graph()Gets the object to manipulate graphs. This group requires the RedisGraph module.- Returns:
- the object to manipulate graphs lists.
-
graph
@Experimental("The Redis graph support is experimental") <K> ReactiveTransactionalGraphCommands<K> graph(Class<K> redisKeyType)Gets the object to manipulate graphs. This group requires the RedisGraph module.- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate graphs lists.
-
search
@Experimental("The Redis search support is experimental") <K> ReactiveTransactionalSearchCommands search(Class<K> redisKeyType)Gets the object to emit commands from thesearchgroup. This group requires the RedisSearch module.- Type Parameters:
K- the type of keys- Returns:
- the object to search documents
-
search
@Experimental("The Redis Search support is experimental") default ReactiveTransactionalSearchCommands search()Gets the object to emit commands from thesearchgroup. This group requires the RedisSearch module.- Returns:
- the object to search documents
-
autosuggest
@Experimental("The Redis auto-suggest support is experimental") <K> ReactiveTransactionalAutoSuggestCommands<K> autosuggest(Class<K> redisKeyType)Gets the object to emit commands from theauto-suggestgroup. This group requires the RedisSearch module.- Type Parameters:
K- the type of keys- Returns:
- the object to get suggestions
-
autosuggest
@Experimental("The Redis auto-suggest support is experimental") default ReactiveTransactionalAutoSuggestCommands<String> autosuggest()Gets the object to emit commands from theauto-suggestgroup. This group requires the RedisSearch module.- Returns:
- the object to get suggestions
-
timeseries
@Experimental("The Redis time series support is experimental") <K> ReactiveTransactionalTimeSeriesCommands<K> timeseries(Class<K> redisKeyType)Gets the object to emit commands from thetime seriesgroup. This group requires the Redis Time Series module.- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate time series
-
timeseries
@Experimental("The Redis time series support is experimental") default ReactiveTransactionalTimeSeriesCommands<String> timeseries()Gets the object to emit commands from thetime seriesgroup. This group requires the Redis Time Series module.- Returns:
- the object to manipulate time series
-
execute
io.smallrye.mutiny.Uni<Void> execute(String command, String... args)
Executes a command. This method is used to execute commands not offered by the API.- Parameters:
command- the command nameargs- the parameters, encoded as String.- Returns:
- the response
-
execute
io.smallrye.mutiny.Uni<Void> execute(io.vertx.mutiny.redis.client.Command command, String... args)
Executes a command. This method is used to execute commands not offered by the API.- Parameters:
command- the commandargs- the parameters, encoded as String.- Returns:
- the response
-
-