Package org.openiam.esb.cache
Class PolicyCacheSweeper
- java.lang.Object
-
- org.openiam.cache.AbstractRedisCacheProvider
-
- org.openiam.cache.AbstractCacheSweeper
-
- org.openiam.common.cache.AbstractBackendSweeper
-
- org.openiam.esb.cache.PolicyCacheSweeper
-
- All Implemented Interfaces:
Sweepable
@Component @DependsOn("springContextProvider") public class PolicyCacheSweeper extends AbstractBackendSweeper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openiam.cache.AbstractCacheSweeper
AbstractCacheSweeper.CacheMode
-
Nested classes/interfaces inherited from class org.openiam.cache.AbstractRedisCacheProvider
AbstractRedisCacheProvider.CacheType, AbstractRedisCacheProvider.Context
-
-
Field Summary
-
Fields inherited from class org.openiam.common.cache.AbstractBackendSweeper
transactionTemplate
-
Fields inherited from class org.openiam.cache.AbstractCacheSweeper
log, redissonClient
-
-
Constructor Summary
Constructors Constructor Description PolicyCacheSweeper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceSweep()
protected AbstractRedisCacheProvider.CacheType
getCacheType()
protected int
getSweepTime()
void
sweep()
Placeholder for Spring to call via Quartz.-
Methods inherited from class org.openiam.common.cache.AbstractBackendSweeper
getContext, init
-
Methods inherited from class org.openiam.cache.AbstractCacheSweeper
evictOldKeys, getCacheMode, getDateCacheKey, getLockCacheKey
-
Methods inherited from class org.openiam.cache.AbstractRedisCacheProvider
buildCacheKey, buildCacheKey
-
-
-
-
Method Detail
-
getSweepTime
protected int getSweepTime()
- Specified by:
getSweepTime
in classAbstractCacheSweeper
-
sweep
@Scheduled(fixedRateString="${org.openiam.policy.threadsweep}", initialDelay=0L) public void sweep()
Description copied from interface:Sweepable
Placeholder for Spring to call via Quartz. Required for @Transactional sweeper methods.- Specified by:
sweep
in interfaceSweepable
- Overrides:
sweep
in classAbstractBackendSweeper
-
forceSweep
public void forceSweep()
- Specified by:
forceSweep
in classAbstractCacheSweeper
-
getCacheType
protected AbstractRedisCacheProvider.CacheType getCacheType()
- Specified by:
getCacheType
in classAbstractRedisCacheProvider
-
-