Package org.objectweb.perseus.cache.api

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


        }
    }
    public void evictAll(Class clazz, boolean subClasses) {
        final List classesToEvict = getClasses(clazz, subClasses);
        try {
            unbindManager.unbind(new CacheEntryFilter() {
                public boolean accept(CacheEntry ce) {
                    Object o = ce.getCeObject();
                    return o != null && classesToEvict.contains(o.getClass());
                }
            }, false);
View Full Code Here


        } //else TODO: pin forever an oid by creating the CacheEntry
    }
    public void pinAll(Class clazz, boolean subClasses) {
        final List classesToPin = getClasses(clazz, subClasses);
        try {
            cacheManager.unfix(new CacheEntryFilter() {
                public boolean accept(CacheEntry ce) {
                    Object o = ce.getCeObject();
                    return ((FixableCacheEntry) ce).getCeFixCount() == 0
                      && o != null && classesToPin.contains(o.getClass());
                }
View Full Code Here

        }
    }
    public void unpinAll(Class clazz, boolean subClasses) {
        final List classesToUnpin = getClasses(clazz, subClasses);
        try {
            cacheManager.unfix(new CacheEntryFilter() {
                public boolean accept(CacheEntry ce) {
                    Object o = ce.getCeObject();
                    return ((FixableCacheEntry) ce).getCeFixCount() == 1
                      && o != null && classesToUnpin.contains(o.getClass());
                }
View Full Code Here

TOP

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

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.