public class AutoLoadHandler extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
AUTO_LOAD_MIN_EXPIRE
自动加载最小过期时间
|
static String |
THREAD_NAME_PREFIX |
| 构造器和说明 |
|---|
AutoLoadHandler(CacheHandler cacheHandler,
AutoLoadConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
AutoLoadTO[] |
getAutoLoadQueue()
获取自动加载队列,如果是web应用,建议把自动加载队列中的数据都输出到页面中,并增加一些管理功能。
|
AutoLoadTO |
getAutoLoadTO(CacheKeyTO cacheKey) |
int |
getSize() |
AutoLoadTO |
putIfAbsent(CacheKeyTO cacheKey,
CacheAopProxyChain joinPoint,
Cache cache,
CacheWrapper<Object> cacheWrapper) |
void |
removeAutoLoadTO(CacheKeyTO cacheKey) |
void |
resetAutoLoadLastLoadTime(CacheKeyTO cacheKey)
重置自动加载时间
|
void |
shutdown() |
public static final int AUTO_LOAD_MIN_EXPIRE
public AutoLoadHandler(CacheHandler cacheHandler, AutoLoadConfig config)
cacheHandler - 缓存的set,get方法实现类config - 配置public int getSize()
public AutoLoadTO getAutoLoadTO(CacheKeyTO cacheKey)
public void removeAutoLoadTO(CacheKeyTO cacheKey)
public void resetAutoLoadLastLoadTime(CacheKeyTO cacheKey)
cacheKey - 缓存Keypublic void shutdown()
public AutoLoadTO putIfAbsent(CacheKeyTO cacheKey, CacheAopProxyChain joinPoint, Cache cache, CacheWrapper<Object> cacheWrapper)
public AutoLoadTO[] getAutoLoadQueue()
Copyright © 2020. All rights reserved.