use of j.cache.JCacheParams in project JFramework by gugumall.
the class VerifyCodeServiceImpl method run.
/*
* (non-Javadoc)
* @see java.lang.Runnable#run()
*/
public void run() {
while (true) {
try {
Thread.sleep(5000);
} catch (Exception e) {
}
try {
List cs = caches.listValues();
for (int i = 0; i < cs.size(); i++) {
CachedMap c = (CachedMap) cs.get(i);
c.remove(new JCacheParams(new VerifyCodeRemover()));
}
} catch (Exception e) {
log.log(e, Logger.LEVEL_ERROR);
}
}
}
Aggregations