Examples of CacheElement


Examples of org.apache.jetspeed.cache.CacheElement

            // add node to caches; note that removes force notification
            // of update to distributed caches
            oidCache.remove(oid);
            boolean removed = pathCache.remove(path);
            CacheElement pathElement = pathCache.createElement(path, new DatabasePageManagerCacheObject(oid, path));
            pathCache.put(pathElement);
            // if a remove was not successful from the path cache, update
            // notification to distributed peers was not performed;
            // for updates of objects evicted from the cache or newly
            // created ones, this is problematic: remove and put into
            // path cache a second time to force
            if (!removed && updatePathsList.contains(path))
            {
                pathCache.remove(path);
                pathCache.put(pathElement);
            }
            // add node to local oid cache by key after removes from
            // distributed path cache since those removes will remove
            // from local oid cache in notifications, (despite the
            // 'local' listener registration)
            CacheElement element = oidCache.createElement(oid, node);
            oidCache.put(element);
        }
    }
View Full Code Here

Examples of org.apache.stratum.jcs.engine.CacheElement

     * @exception IOException
     */
    public void remove( String cacheName, Serializable key, byte requesterId )
        throws IOException
    {
        CacheElement ce = new CacheElement( cacheName, key, null );
        LateralElementDescriptor led = new LateralElementDescriptor( ce );
        led.requesterId = requesterId;
        led.command = led.REMOVE;
        send( led );
    }
View Full Code Here

Examples of org.jboss.dashboard.database.cache.CacheElement

        //
        // do not create cache, if it already exists
        if (multiCacheManager.containsCache(name)) {
            log.error("Cache of type [" + name + "] already exists.");
        } else {
            CacheElement element = null;
            if (customCaches.contains(name)) {
                element = cacheOptions.getDefaultCacheElement();
            } else {
                element = cacheOptions.getElement(name);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.