public class CacheHandler extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
ConcurrentHashMap<CacheKeyTO,ProcessingTO> |
processing
正在处理中的请求
|
| 构造器和说明 |
|---|
CacheHandler(ICacheManager cacheManager,
AbstractScriptParser scriptParser,
AutoLoadConfig config,
ICloner cloner) |
public final ConcurrentHashMap<CacheKeyTO,ProcessingTO> processing
public CacheHandler(ICacheManager cacheManager, AbstractScriptParser scriptParser, AutoLoadConfig config, ICloner cloner) throws IllegalArgumentException
public Object proceed(CacheAopProxyChain pjp, Cache cache) throws Throwable
public void deleteCache(DeleteCacheAopProxyChain jp, CacheDelete cacheDelete, Object retVal) throws Throwable
jp - 切点cacheDelete - 拦截到的注解retVal - 返回值Throwable - 异常public Object proceedDeleteCacheTransactional(DeleteCacheTransactionalAopProxyChain pjp, CacheDeleteTransactional cacheDeleteTransactional) throws Throwable
pjp - 切面cacheDeleteTransactional - 注解Throwable - 异常public Object getData(CacheAopProxyChain pjp, Object[] arguments) throws Throwable
Throwablepublic void writeCache(CacheAopProxyChain pjp, Object[] arguments, Cache cache, CacheKeyTO cacheKey, CacheWrapper<Object> cacheWrapper) throws Exception
Exceptionpublic void destroy()
public CacheKeyTO getCacheKey(Object target, String methodName, Object[] arguments, String keyExpression, String hfieldExpression, Object result, boolean hasRetVal)
target - 类名methodName - 方法名arguments - 参数keyExpression - key表达式hfieldExpression - hfield表达式result - 执行实际方法的返回值hasRetVal - 是否有返回值public AutoLoadHandler getAutoLoadHandler()
public AbstractScriptParser getScriptParser()
public ILock getLock()
public void setLock(ILock lock)
public void setCache(CacheKeyTO cacheKey, CacheWrapper<Object> result, Method method) throws CacheCenterConnectionException
public Map<CacheKeyTO,CacheWrapper<Object>> mget(Method method, Type returnType, Set<CacheKeyTO> keySet) throws CacheCenterConnectionException
public void mset(Method method, Collection<MSetParam> params) throws CacheCenterConnectionException
public CacheWrapper<Object> get(CacheKeyTO key, Method method) throws CacheCenterConnectionException
public void delete(Set<CacheKeyTO> keys) throws CacheCenterConnectionException
public ICloner getCloner()
public AutoLoadConfig getAutoLoadConfig()
public ChangeListener getChangeListener()
public void setChangeListener(ChangeListener changeListener)
Copyright © 2020. All rights reserved.