Package org.redisson
Class RedissonClientSideCaching
java.lang.Object
org.redisson.RedissonClientSideCaching
- All Implemented Interfaces:
RClientSideCaching
,RDestroyable
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescription<T> T
void
destroy()
Destroys object when it's not necessary anymore.<V> RBlockingDeque
<V> getBlockingDeque
(String name) Returns unbounded blocking deque instance by name.<V> RBlockingDeque
<V> getBlockingDeque
(String name, Codec codec) Returns unbounded blocking deque instance by name using provided codec for deque objects.<V> RBlockingQueue
<V> getBlockingQueue
(String name) Returns unbounded blocking queue instance by name.<V> RBlockingQueue
<V> getBlockingQueue
(String name, Codec codec) Returns unbounded blocking queue instance by name using provided codec for queue objects.<V> RBucket
<V> Returns object holder instance by name.<V> RBucket
<V> Returns object holder instance by name using provided codec for object.<V> RDeque
<V> Returns unbounded deque instance by name.<V> RDeque
<V> Returns unbounded deque instance by name using provided codec for deque objects.<V> RGeo
<V> Returns geospatial items holder instance byname
.<V> RGeo
<V> Returns geospatial items holder instance byname
using provided codec for geospatial members.<V> RList
<V> Returns list instance by name.<V> RList
<V> Returns list instance by name using provided codec for list objects.<K,
V> RMap <K, V> Returns map instance by name.<K,
V> RMap <K, V> Returns map instance by name using provided codec for both map keys and values.<V> RQueue
<V> Returns unbounded queue instance by name.<V> RQueue
<V> Returns unbounded queue instance by name using provided codec for queue objects.<V> RScoredSortedSet
<V> getScoredSortedSet
(String name) Returns Redis Sorted Set instance by name.<V> RScoredSortedSet
<V> getScoredSortedSet
(String name, Codec codec) Returns Redis Sorted Set instance by name using provided codec for sorted set objects.<V> RSet
<V> Returns set instance by name.<V> RSet
<V> Returns set instance by name using provided codec for set objects.<K,
V> RStream <K, V> Returns stream instance byname
<K,
V> RStream <K, V> Returns stream instance byname
using providedcodec
for entries.
-
Method Details
-
create
-
getBucket
Description copied from interface:RClientSideCaching
Returns object holder instance by name.- Specified by:
getBucket
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Bucket object
-
getBucket
Description copied from interface:RClientSideCaching
Returns object holder instance by name using provided codec for object.- Specified by:
getBucket
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- Bucket object
-
getStream
Description copied from interface:RClientSideCaching
Returns stream instance byname
Requires Redis 5.0.0 and higher.
- Specified by:
getStream
in interfaceRClientSideCaching
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- of stream- Returns:
- RStream object
-
getStream
Description copied from interface:RClientSideCaching
Returns stream instance byname
using providedcodec
for entries.Requires Redis 5.0.0 and higher.
- Specified by:
getStream
in interfaceRClientSideCaching
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of streamcodec
- codec for entry- Returns:
- RStream object
-
getSet
Description copied from interface:RClientSideCaching
Returns set instance by name.- Specified by:
getSet
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Set object
-
getSet
Description copied from interface:RClientSideCaching
Returns set instance by name using provided codec for set objects.- Specified by:
getSet
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- Set object
-
getMap
Description copied from interface:RClientSideCaching
Returns map instance by name.NOTE: client side caching feature invalidates whole Map per entry change which is ineffective. Use local cached Map, JSON Store instead.
- Specified by:
getMap
in interfaceRClientSideCaching
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of object- Returns:
- Map object
-
getMap
Description copied from interface:RClientSideCaching
Returns map instance by name using provided codec for both map keys and values.NOTE: client side caching feature invalidates whole Map per entry change which is ineffective. Use local cached Map, JSON Store instead.
- Specified by:
getMap
in interfaceRClientSideCaching
- Type Parameters:
K
- type of keyV
- type of value- Parameters:
name
- name of objectcodec
- codec for keys and values- Returns:
- Map object
-
getScoredSortedSet
Description copied from interface:RClientSideCaching
Returns Redis Sorted Set instance by name. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSet
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- ScoredSortedSet object
-
getScoredSortedSet
Description copied from interface:RClientSideCaching
Returns Redis Sorted Set instance by name using provided codec for sorted set objects. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSet
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- ScoredSortedSet object
-
getList
Description copied from interface:RClientSideCaching
Returns list instance by name.- Specified by:
getList
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- List object
-
getList
Description copied from interface:RClientSideCaching
Returns list instance by name using provided codec for list objects.- Specified by:
getList
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- List object
-
getQueue
Description copied from interface:RClientSideCaching
Returns unbounded queue instance by name.- Specified by:
getQueue
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- of object- Returns:
- queue object
-
getQueue
Description copied from interface:RClientSideCaching
Returns unbounded queue instance by name using provided codec for queue objects.- Specified by:
getQueue
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for message- Returns:
- Queue object
-
getDeque
Description copied from interface:RClientSideCaching
Returns unbounded deque instance by name.- Specified by:
getDeque
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Deque object
-
getDeque
Description copied from interface:RClientSideCaching
Returns unbounded deque instance by name using provided codec for deque objects.- Specified by:
getDeque
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for values- Returns:
- Deque object
-
getBlockingQueue
Description copied from interface:RClientSideCaching
Returns unbounded blocking queue instance by name.- Specified by:
getBlockingQueue
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- BlockingQueue object
-
getBlockingQueue
Description copied from interface:RClientSideCaching
Returns unbounded blocking queue instance by name using provided codec for queue objects.- Specified by:
getBlockingQueue
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of queuecodec
- queue objects codec- Returns:
- BlockingQueue object
-
getBlockingDeque
Description copied from interface:RClientSideCaching
Returns unbounded blocking deque instance by name.- Specified by:
getBlockingDeque
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- BlockingDeque object
-
getBlockingDeque
Description copied from interface:RClientSideCaching
Returns unbounded blocking deque instance by name using provided codec for deque objects.- Specified by:
getBlockingDeque
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- deque objects codec- Returns:
- BlockingDeque object
-
getGeo
Description copied from interface:RClientSideCaching
Returns geospatial items holder instance byname
.- Specified by:
getGeo
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of object- Returns:
- Geo object
-
getGeo
Description copied from interface:RClientSideCaching
Returns geospatial items holder instance byname
using provided codec for geospatial members.- Specified by:
getGeo
in interfaceRClientSideCaching
- Type Parameters:
V
- type of value- Parameters:
name
- name of objectcodec
- codec for value- Returns:
- Geo object
-
destroy
public void destroy()Description copied from interface:RDestroyable
Destroys object when it's not necessary anymore.- Specified by:
destroy
in interfaceRDestroyable
-