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> Tvoiddestroy()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 bynameusing 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 bynameusing providedcodecfor entries.
-
Method Details
-
create
-
getBucket
Description copied from interface:RClientSideCachingReturns object holder instance by name.- Specified by:
getBucketin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- Bucket object
-
getBucket
Description copied from interface:RClientSideCachingReturns object holder instance by name using provided codec for object.- Specified by:
getBucketin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of objectcodec- codec for values- Returns:
- Bucket object
-
getStream
Description copied from interface:RClientSideCachingReturns stream instance bynameRequires Redis 5.0.0 and higher.
- Specified by:
getStreamin interfaceRClientSideCaching- Type Parameters:
K- type of keyV- type of value- Parameters:
name- of stream- Returns:
- RStream object
-
getStream
Description copied from interface:RClientSideCachingReturns stream instance bynameusing providedcodecfor entries.Requires Redis 5.0.0 and higher.
- Specified by:
getStreamin 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:RClientSideCachingReturns set instance by name.- Specified by:
getSetin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- Set object
-
getSet
Description copied from interface:RClientSideCachingReturns set instance by name using provided codec for set objects.- Specified by:
getSetin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of objectcodec- codec for values- Returns:
- Set object
-
getMap
Description copied from interface:RClientSideCachingReturns 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:
getMapin interfaceRClientSideCaching- Type Parameters:
K- type of keyV- type of value- Parameters:
name- name of object- Returns:
- Map object
-
getMap
Description copied from interface:RClientSideCachingReturns 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:
getMapin 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:RClientSideCachingReturns Redis Sorted Set instance by name. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSetin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- ScoredSortedSet object
-
getScoredSortedSet
Description copied from interface:RClientSideCachingReturns Redis Sorted Set instance by name using provided codec for sorted set objects. This sorted set sorts objects by object score.- Specified by:
getScoredSortedSetin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of objectcodec- codec for values- Returns:
- ScoredSortedSet object
-
getList
Description copied from interface:RClientSideCachingReturns list instance by name.- Specified by:
getListin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- List object
-
getList
Description copied from interface:RClientSideCachingReturns list instance by name using provided codec for list objects.- Specified by:
getListin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of objectcodec- codec for values- Returns:
- List object
-
getQueue
Description copied from interface:RClientSideCachingReturns unbounded queue instance by name.- Specified by:
getQueuein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- of object- Returns:
- queue object
-
getQueue
Description copied from interface:RClientSideCachingReturns unbounded queue instance by name using provided codec for queue objects.- Specified by:
getQueuein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of objectcodec- codec for message- Returns:
- Queue object
-
getDeque
Description copied from interface:RClientSideCachingReturns unbounded deque instance by name.- Specified by:
getDequein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- Deque object
-
getDeque
Description copied from interface:RClientSideCachingReturns unbounded deque instance by name using provided codec for deque objects.- Specified by:
getDequein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of objectcodec- codec for values- Returns:
- Deque object
-
getBlockingQueue
Description copied from interface:RClientSideCachingReturns unbounded blocking queue instance by name.- Specified by:
getBlockingQueuein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- BlockingQueue object
-
getBlockingQueue
Description copied from interface:RClientSideCachingReturns unbounded blocking queue instance by name using provided codec for queue objects.- Specified by:
getBlockingQueuein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of queuecodec- queue objects codec- Returns:
- BlockingQueue object
-
getBlockingDeque
Description copied from interface:RClientSideCachingReturns unbounded blocking deque instance by name.- Specified by:
getBlockingDequein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- BlockingDeque object
-
getBlockingDeque
Description copied from interface:RClientSideCachingReturns unbounded blocking deque instance by name using provided codec for deque objects.- Specified by:
getBlockingDequein interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of objectcodec- deque objects codec- Returns:
- BlockingDeque object
-
getGeo
Description copied from interface:RClientSideCachingReturns geospatial items holder instance byname.- Specified by:
getGeoin interfaceRClientSideCaching- Type Parameters:
V- type of value- Parameters:
name- name of object- Returns:
- Geo object
-
getGeo
Description copied from interface:RClientSideCachingReturns geospatial items holder instance bynameusing provided codec for geospatial members.- Specified by:
getGeoin 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:RDestroyableDestroys object when it's not necessary anymore.- Specified by:
destroyin interfaceRDestroyable
-