|
@@ -24,7 +24,7 @@ public abstract class FullObjectRedisCache<T> implements FullObjectCache<T> {
|
|
|
|
|
|
private RedisClient redisClient;
|
|
|
|
|
|
- private FullObjectCacheController fullObjectCacheController = new DefaultFullObjectCacheController();
|
|
|
+ private FullObjectCacheWatcher fullObjectCacheWatcher = new DefaultFullObjectCacheWatcher();
|
|
|
|
|
|
private RedisClient getRedisClient() {
|
|
|
if (null == redisClient) {
|
|
@@ -50,7 +50,7 @@ public abstract class FullObjectRedisCache<T> implements FullObjectCache<T> {
|
|
|
String key = buildKey(keys);
|
|
|
T t = getFromCache(key);
|
|
|
if (null == t) {
|
|
|
- if (getFullObjectCacheController().allLoaded()) {
|
|
|
+ if (getFullObjectCacheWatcher().allLoaded()) {
|
|
|
return t;
|
|
|
} else {
|
|
|
refresh(keys);
|
|
@@ -100,13 +100,13 @@ public abstract class FullObjectRedisCache<T> implements FullObjectCache<T> {
|
|
|
this.refresh(keys);
|
|
|
}
|
|
|
}
|
|
|
- getFullObjectCacheController().setAllLoaded(true);
|
|
|
+ getFullObjectCacheWatcher().setAllLoaded(true);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public FullObjectCacheController getFullObjectCacheController() {
|
|
|
- return fullObjectCacheController;
|
|
|
+ public FullObjectCacheWatcher getFullObjectCacheWatcher() {
|
|
|
+ return fullObjectCacheWatcher;
|
|
|
}
|
|
|
|
|
|
}
|