public class RedissonTransactionReactive extends Object implements RTransactionReactive
| Constructor and Description |
|---|
RedissonTransactionReactive(CommandReactiveExecutor executorService,
TransactionOptions options) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<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. |
org.reactivestreams.Publisher<Void> |
rollback()
Rollback all changes made on this transaction.
|
public RedissonTransactionReactive(CommandReactiveExecutor executorService, TransactionOptions options)
public <V> RBucketReactive<V> getBucket(String name)
RTransactionReactivegetBucket in interface RTransactionReactiveV - type of valuename - - name of objectpublic <V> RBucketReactive<V> getBucket(String name, Codec codec)
RTransactionReactivegetBucket in interface RTransactionReactiveV - type of valuename - - name of objectcodec - - codec for valuespublic <K,V> RMapReactive<K,V> getMap(String name)
RTransactionReactivegetMap in interface RTransactionReactiveK - type of keyV - type of valuename - - name of objectpublic <K,V> RMapReactive<K,V> getMap(String name, Codec codec)
RTransactionReactivegetMap in interface RTransactionReactiveK - type of keyV - type of valuename - - name of objectcodec - - codec for keys and valuespublic <K,V> RMapCacheReactive<K,V> getMapCache(String name, Codec codec)
RTransactionReactivename
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 RTransactionReactiveK - 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 RTransactionReactiveK - type of keyV - type of valuename - - name of objectpublic <V> RSetReactive<V> getSet(String name)
RTransactionReactivegetSet in interface RTransactionReactiveV - type of valuename - - name of objectpublic <V> RSetReactive<V> getSet(String name, Codec codec)
RTransactionReactivegetSet in interface RTransactionReactiveV - type of valuename - - name of objectcodec - - codec for valuespublic <V> RSetCacheReactive<V> getSetCache(String name)
RTransactionReactivename.
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 RTransactionReactiveV - type of valuename - - name of objectpublic <V> RSetCacheReactive<V> getSetCache(String name, Codec codec)
RTransactionReactivename.
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 RTransactionReactiveV - type of valuename - - name of objectcodec - - codec for valuespublic org.reactivestreams.Publisher<Void> commit()
RTransactionReactivecommit in interface RTransactionReactivepublic org.reactivestreams.Publisher<Void> rollback()
RTransactionReactiverollback in interface RTransactionReactiveCopyright © 2014–2018 The Redisson Project. All rights reserved.