Package org.objectweb.perseus.cache.api

Examples of org.objectweb.perseus.cache.api.FixableCacheEntry


            throw new JDOException("Error during the eviction of an entry: ", e);
        }
    }
   
    public void pin(Object oid) {
        FixableCacheEntry ce = (FixableCacheEntry) cacheManager.lookup(oid);
        if (ce != null && ce.getCeFixCount() == 0) {
            try {
                cacheManager.fix(ce);
            } catch (CacheException e) {
                logger.log(BasicLevel.WARN, "Impossible to pin the persistent class: ", e);
            }
View Full Code Here


    public void pinAll(Object[] oids) {
        pinAll(Arrays.asList(oids));
    }
   
    public void unpin(Object oid) {
        FixableCacheEntry ce = (FixableCacheEntry) cacheManager.lookup(oid);
        if (ce != null && ce.getCeFixCount() == 0) {
            try {
                cacheManager.unfix(ce);
            } catch (CacheException e) {
                logger.log(BasicLevel.WARN, "Impossible to pin the persistent class: ", e);
            }
View Full Code Here

TOP

Related Classes of org.objectweb.perseus.cache.api.FixableCacheEntry

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.