Class BlockingTransactionalRedisDataSourceImpl
java.lang.Object
io.quarkus.redis.runtime.datasource.BlockingTransactionalRedisDataSourceImpl
- All Implemented Interfaces:
TransactionalRedisDataSource
public class BlockingTransactionalRedisDataSourceImpl
extends Object
implements TransactionalRedisDataSource
-
Constructor Summary
ConstructorsConstructorDescriptionBlockingTransactionalRedisDataSourceImpl(ReactiveTransactionalRedisDataSource api, Duration timeout) -
Method Summary
Modifier and TypeMethodDescriptionautosuggest(Class<K> redisKeyType) Gets the object to emit commands from theauto-suggestgroup.<K> TransactionalBitMapCommands<K>Gets the object to execute commands manipulating bitmap data structures.<K,V> TransactionalBloomCommands<K, V> Gets the object to manipulate Bloom filters.<K,V> TransactionalCountMinCommands<K, V> Gets the object to manipulate Count-Min sketches.<K,V> TransactionalCuckooCommands<K, V> Gets the object to manipulate Cuckoo filters.voiddiscard()Discard the current transaction.booleanChecks if the current transaction has been discarded by the uservoidExecutes a command.voidExecutes a command.voidExecutes a command.<K,V> TransactionalGeoCommands<K, V> Gets the object to execute commands manipulating geo items (a.k.a.<K> TransactionalGraphCommands<K>Gets the object to manipulate graphs.<K,F, V> TransactionalHashCommands<K, F, V> Gets the object to execute commands manipulating hashes (a.k.a.<K,V> TransactionalHyperLogLogCommands<K, V> hyperloglog(Class<K> redisKeyType, Class<V> memberType) Gets the object to execute commands manipulating hyperloglog data structures.<K> TransactionalJsonCommands<K>Gets the object to manipulate JSON values.<K> TransactionalKeyCommands<K>Gets the object to execute commands manipulating keys and expiration times.<K,V> TransactionalListCommands<K, V> Gets the object to execute commands manipulating lists.Gets the object to emit commands from thesearchgroup.<K,V> TransactionalSetCommands<K, V> Gets the object to execute commands manipulating sets.<K,V> TransactionalSortedSetCommands<K, V> Gets the object to execute commands manipulating sorted sets.<K,F, V> TransactionalStreamCommands<K, F, V> Gets the object to execute commands manipulating streams.<K,V> TransactionalStringCommands<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> TransactionalTopKCommands<K, V> Gets the object to manipulate Top-K list.<K,V> TransactionalValueCommands<K, V> Gets the object to execute commands manipulating stored strings.
-
Constructor Details
-
BlockingTransactionalRedisDataSourceImpl
public BlockingTransactionalRedisDataSourceImpl(ReactiveTransactionalRedisDataSource api, Duration timeout)
-
-
Method Details
-
discard
public void discard()Description copied from interface:TransactionalRedisDataSourceDiscard the current transaction.- Specified by:
discardin interfaceTransactionalRedisDataSource
-
discarded
public boolean discarded()Description copied from interface:TransactionalRedisDataSourceChecks if the current transaction has been discarded by the user- Specified by:
discardedin interfaceTransactionalRedisDataSource- Returns:
- if the current transaction has been discarded by the user
-
hash
public <K,F, TransactionalHashCommands<K,V> F, hashV> (Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue) Description copied from interface:TransactionalRedisDataSourceGets 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 interfaceTransactionalRedisDataSource- 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:TransactionalRedisDataSourceGets 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 interfaceTransactionalRedisDataSource- 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.
-
key
Description copied from interface:TransactionalRedisDataSourceGets the object to execute commands manipulating keys and expiration times.- Specified by:
keyin interfaceTransactionalRedisDataSource- Type Parameters:
K- the type of the key- Parameters:
redisKeyType- the type of the keys- Returns:
- the object to execute commands manipulating keys.
-
set
Description copied from interface:TransactionalRedisDataSourceGets the object to execute commands manipulating sets.- Specified by:
setin interfaceTransactionalRedisDataSource- 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.
-
sortedSet
public <K,V> TransactionalSortedSetCommands<K,V> sortedSet(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:TransactionalRedisDataSourceGets the object to execute commands manipulating sorted sets.- Specified by:
sortedSetin interfaceTransactionalRedisDataSource- 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.
-
string
Description copied from interface:TransactionalRedisDataSourceGets the object to execute commands manipulating stored strings.- Specified by:
stringin interfaceTransactionalRedisDataSource- 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
Description copied from interface:TransactionalRedisDataSourceGets 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 interfaceTransactionalRedisDataSource- 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.
-
list
Description copied from interface:TransactionalRedisDataSourceGets the object to execute commands manipulating lists.- Specified by:
listin interfaceTransactionalRedisDataSource- 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> TransactionalHyperLogLogCommands<K,V> hyperloglog(Class<K> redisKeyType, Class<V> memberType) Description copied from interface:TransactionalRedisDataSourceGets the object to execute commands manipulating hyperloglog data structures.- Specified by:
hyperloglogin interfaceTransactionalRedisDataSource- 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:TransactionalRedisDataSourceGets the object to execute commands manipulating bitmap data structures.- Specified by:
bitmapin interfaceTransactionalRedisDataSource- 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, TransactionalStreamCommands<K,V> F, streamV> (Class<K> redisKeyType, Class<F> typeOfField, Class<V> typeOfValue) Description copied from interface:TransactionalRedisDataSourceGets the object to execute commands manipulating streams.- Specified by:
streamin interfaceTransactionalRedisDataSource- 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:TransactionalRedisDataSourceGets the object to manipulate JSON values. This group requires the RedisJSON module.- Specified by:
jsonin interfaceTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate JSON values.
-
bloom
Description copied from interface:TransactionalRedisDataSourceGets the object to manipulate Bloom filters. This group requires the RedisBloom module.- Specified by:
bloomin interfaceTransactionalRedisDataSource- 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
Description copied from interface:TransactionalRedisDataSourceGets the object to manipulate Cuckoo filters. This group requires the RedisBloom module (including the Cuckoo filter support).- Specified by:
cuckooin interfaceTransactionalRedisDataSource- 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> TransactionalCountMinCommands<K,V> countmin(Class<K> redisKeyType, Class<V> valueType) Description copied from interface:TransactionalRedisDataSourceGets the object to manipulate Count-Min sketches. This group requires the RedisBloom module (including the count-min sketches support).- Specified by:
countminin interfaceTransactionalRedisDataSource- 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
Description copied from interface:TransactionalRedisDataSourceGets the object to manipulate Top-K list. This group requires the RedisBloom module (including the top-k list support).- Specified by:
topkin interfaceTransactionalRedisDataSource- 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:TransactionalRedisDataSourceGets the object to manipulate graphs. This group requires the RedisGraph module.- Specified by:
graphin interfaceTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate graphs lists.
-
search
Description copied from interface:TransactionalRedisDataSourceGets the object to emit commands from thesearchgroup. This group requires the RedisSearch module.- Specified by:
searchin interfaceTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to search documents
-
autosuggest
Description copied from interface:TransactionalRedisDataSourceGets the object to emit commands from theauto-suggestgroup. This group requires the RedisSearch module.- Specified by:
autosuggestin interfaceTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to get suggestions
-
timeseries
Description copied from interface:TransactionalRedisDataSourceGets the object to emit commands from thetime seriesgroup. This group requires the Redis Time Series module.- Specified by:
timeseriesin interfaceTransactionalRedisDataSource- Type Parameters:
K- the type of keys- Returns:
- the object to manipulate time series
-
execute
Description copied from interface:TransactionalRedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceTransactionalRedisDataSource- Parameters:
command- the command nameargs- the parameters, encoded as String.
-
execute
Description copied from interface:TransactionalRedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceTransactionalRedisDataSource- Parameters:
command- the commandargs- the parameters, encoded as String.
-
execute
Description copied from interface:TransactionalRedisDataSourceExecutes a command. This method is used to execute commands not offered by the API.- Specified by:
executein interfaceTransactionalRedisDataSource- Parameters:
command- the commandargs- the parameters, encoded as String.
-