public class RedissonTransactionReactive extends Object implements RTransactionReactive
Constructor and Description |
---|
RedissonTransactionReactive(CommandReactiveExecutor executorService,
TransactionOptions options) |
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.
|
public RedissonTransactionReactive(CommandReactiveExecutor executorService, TransactionOptions options)
public <V> RBucketReactive<V> getBucket(String name)
RTransactionReactive
getBucket
in interface RTransactionReactive
V
- type of valuename
- - name of objectpublic <V> RBucketReactive<V> getBucket(String name, Codec codec)
RTransactionReactive
getBucket
in interface RTransactionReactive
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <K,V> RMapReactive<K,V> getMap(String name)
RTransactionReactive
getMap
in interface RTransactionReactive
K
- type of keyV
- type of valuename
- - name of objectpublic <K,V> RMapReactive<K,V> getMap(String name, Codec codec)
RTransactionReactive
getMap
in interface RTransactionReactive
K
- type of keyV
- type of valuename
- - name of objectcodec
- - codec for keys and valuespublic <K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec)
RTransactionReactive
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 RTransactionReactive.getMap(String, Codec)
.
getMapCache
in interface RTransactionReactive
K
- type of keyV
- type of valuename
- - object namecodec
- - codec for keys and valuespublic <K,V> RMapCacheReactive<K,V> getMapCache(String name)
RTransactionReactive
If eviction is not required then it's better to use regular map RTransactionReactive.getMap(String)
.
getMapCache
in interface RTransactionReactive
K
- type of keyV
- type of valuename
- - name of objectpublic <V> RSetReactive<V> getSet(String name)
RTransactionReactive
getSet
in interface RTransactionReactive
V
- type of valuename
- - name of objectpublic <V> RSetReactive<V> getSet(String name, Codec codec)
RTransactionReactive
getSet
in interface RTransactionReactive
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic <V> RSetCacheReactive<V> getSetCache(String name)
RTransactionReactive
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RTransactionReactive.getSet(String)
.
getSetCache
in interface RTransactionReactive
V
- type of valuename
- - name of objectpublic <V> RSetCacheReactive<V> getSetCache(String name, Codec codec)
RTransactionReactive
name
.
Supports value eviction with a given TTL value.
If eviction is not required then it's better to use regular map RTransactionReactive.getSet(String, Codec)
.
getSetCache
in interface RTransactionReactive
V
- type of valuename
- - name of objectcodec
- - codec for valuespublic reactor.core.publisher.Mono<Void> commit()
RTransactionReactive
commit
in interface RTransactionReactive
public reactor.core.publisher.Mono<Void> rollback()
RTransactionReactive
rollback
in interface RTransactionReactive
Copyright © 2014–2020 Redisson. All rights reserved.