Package javax.util.jcache

Examples of javax.util.jcache.CacheLoader


            return;
        }
        final CacheLogger logger = CacheImpl.getCache().getAttributes().getLogger();
        try {
            final CacheObject obj = getCacheObject(name, group);
            final CacheLoader loader = obj.getAttributes().getLoader();
            if (loader == null) {
                throw new ObjectNotFoundException("The object has no CacheLoader associated with it.");
            }
            Runnable runnable = new Runnable() {
                public void run() {
                    try {
                        loader.load(obj, arguments);
                    } catch (CacheException e) {
                        if (logger != null) {
                            logger.log("The object was not found in the cache.", e);
                        }
                    }
View Full Code Here

TOP

Related Classes of javax.util.jcache.CacheLoader

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.