Package org.fjank.jcache

Examples of org.fjank.jcache.CacheSweeper


        //
        cache.init(catt);
        //        CacheSweeper.startSweeper executes
        //        within CacheSweeper.getInstance
        //
        CacheSweeper instance = CacheSweeper.getInstance();
       
        cache.close();
        //        CacheSweeper.stopSweeper executes
        //
        cache = factory.getCache(false);
        //
        cache.init(catt);
        CacheSweeper instance2= CacheSweeper.getInstance();
        assertNotSame(instance, instance2);
        //        CacheSweeper.startSweeper does not
        //        execute within CacheSweeper.getInstance
        //        because CacheSweeper instance is not null
    }
View Full Code Here

TOP

Related Classes of org.fjank.jcache.CacheSweeper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.