Search in sources :

Example 16 with JCacheParams

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);
        }
    }
}
Also used : JCacheParams(j.cache.JCacheParams) CachedMap(j.cache.CachedMap) List(java.util.List) RemoteException(java.rmi.RemoteException)

Aggregations

JCacheParams (j.cache.JCacheParams)16 ConcurrentList (j.util.ConcurrentList)6 List (java.util.List)6 IOException (java.io.IOException)5 ServletException (javax.servlet.ServletException)5 JUtilString (j.util.JUtilString)4 File (java.io.File)2 HttpSession (javax.servlet.http.HttpSession)2 CachedMap (j.cache.CachedMap)1 RemoteException (java.rmi.RemoteException)1 LinkedList (java.util.LinkedList)1