public interface RTransactionReactive
Transaction isolation level: READ_COMMITTED
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
commit()
Commits all changes made on this transaction.
|
<V> RBucketReactive<V> |
getBucket(String name)
Returns transactional object holder instance by name.
|
<V> RBucketReactive<V> |
getBucket(String name,
Codec codec)
Returns transactional object holder instance by name
using provided codec for object.
|
<K,V> RMapReactive<K,V> |
getMap(String name)
Returns transactional map instance by name.
|
<K,V> RMapReactive<K,V> |
getMap(String name,
Codec codec)
Returns transactional map instance by name
using provided codec for both map keys and values.
|
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name)
Returns transactional map-based cache instance by name.
|
<K,V> RMapCacheReactive<K,V> |
getMapCache(String name,
Codec codec)
Returns transactional map-based cache instance by
name
using provided codec for both cache keys and values. |
<V> RSetReactive<V> |
getSet(String name)
Returns transactional set instance by name.
|
<V> RSetReactive<V> |
getSet(String name,
Codec codec)
Returns transactional set instance by name
using provided codec for set objects.
|
<V> RSetCacheReactive<V> |
getSetCache(String name)
Returns transactional set-based cache instance by
name . |
<V> RSetCacheReactive<V> |
getSetCache(String name,
Codec codec)
Returns transactional set-based cache instance by
name . |
reactor.core.publisher.Mono<Void> |
rollback()
Rollback all changes made on this transaction.
|
<V> RBucketReactive<V> getBucket(String name)
V
- type of valuename
- - name of object<V> RBucketReactive<V> getBucket(String name, Codec codec)
V
- type of valuename
- - name of objectcodec
- - codec for values<K,V> RMapReactive<K,V> getMap(String name)
K
- type of keyV
- type of valuename
- - name of object<K,V> RMapReactive<K,V> getMap(String name, Codec codec)
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and values<V> RSetReactive<V> getSet(String name)
V
- type of valuename
- - name of object<V> RSetReactive<V> getSet(String name, Codec codec)
V
- type of valuename
- - name of objectcodec
- - codec for values<V> RSetCacheReactive<V> getSetCache(String name)
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map getSet(String)
.
V
- type of valuename
- - name of object<V> RSetCacheReactive<V> getSetCache(String name, Codec codec)
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map getSet(String, Codec)
.
V
- type of valuename
- - name of objectcodec
- - codec for values<K,V> RMapCacheReactive<K,V> getMapCache(String name)
If eviction is not required then it's better to use regular map getMap(String)
.
K
- type of keyV
- type of valuename
- - name of object<K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec)
name
using provided codec
for both cache keys and values.
Supports entry eviction with a given MaxIdleTime and TTL settings.
If eviction is not required then it's better to use regular map getMap(String, Codec)
.
K
- type of keyV
- type of valuename
- - object namecodec
- - codec for keys and valuesreactor.core.publisher.Mono<Void> commit()
reactor.core.publisher.Mono<Void> rollback()
Copyright © 2014–2020 Redisson. All rights reserved.