Package com.axelor.cache.redisson
Class AbstractRedissonCacheBuilder<K,V,B extends AbstractRedissonCacheBuilder<K,V,B,M,O>,M extends org.redisson.api.RMap<K,V>,O extends org.redisson.api.options.ExMapOptions<?,K,V>>
java.lang.Object
com.axelor.cache.CacheBuilder<K,V,B>
com.axelor.cache.redisson.AbstractRedissonCacheBuilder<K,V,B,M,O>
- Direct Known Subclasses:
RedissonCacheBuilder,RedissonCacheNativeBuilder
public abstract class AbstractRedissonCacheBuilder<K,V,B extends AbstractRedissonCacheBuilder<K,V,B,M,O>,M extends org.redisson.api.RMap<K,V>,O extends org.redisson.api.options.ExMapOptions<?,K,V>>
extends CacheBuilder<K,V,B>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRedissonCacheBuilder(CacheBuilder<K, V, ?> builder) protectedAbstractRedissonCacheBuilder(String cacheName) -
Method Summary
Modifier and TypeMethodDescription<K1 extends K,V1 extends V>
AxelorCache<K1, V1> buildCache(String name) <K1 extends K,V1 extends V>
AxelorCache<K1, V1> buildCache(String name, CacheLoader<? super K1, V1> loader) protected voidconfigureCache(AbstractRedissonCache<K, V, M> cache) protected <K1 extends K,V1 extends V>
TenantAwareCache<K1, V1> createTenantAwareCache(Function<String, AxelorCache<K1, V1>> cacheFactory) protected abstract MnewMapCache(O options) protected abstract OnewOptions(String name) protected abstract AbstractRedissonCache<K, V, M> newRedissonCache(M cache) Methods inherited from class com.axelor.cache.CacheBuilder
build, build, expireAfterAccess, expireAfterWrite, fromCacheName, getCacheName, getCacheProviderInfo, getCacheType, getExpireAfterAccess, getExpireAfterWrite, getMaximumSize, getRemovalListener, isTenantAware, maximumSize, newBuilder, newInMemoryBuilder, nonTenantAware, removalListener, self
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
AbstractRedissonCacheBuilder
-
AbstractRedissonCacheBuilder
-
-
Method Details
-
buildCache
- Specified by:
buildCachein classCacheBuilder<K,V, B extends AbstractRedissonCacheBuilder<K, V, B, M, O>>
-
buildCache
public <K1 extends K,V1 extends V> AxelorCache<K1,V1> buildCache(String name, CacheLoader<? super K1, V1> loader) - Specified by:
buildCachein classCacheBuilder<K,V, B extends AbstractRedissonCacheBuilder<K, V, B, M, O>>
-
createTenantAwareCache
protected <K1 extends K,V1 extends V> TenantAwareCache<K1,V1> createTenantAwareCache(Function<String, AxelorCache<K1, V1>> cacheFactory) - Overrides:
createTenantAwareCachein classCacheBuilder<K,V, B extends AbstractRedissonCacheBuilder<K, V, B, M, O>>
-
newOptions
-
newMapCache
-
newRedissonCache
-
configureCache
-