Package org.apache.jcs.engine.behavior

Examples of org.apache.jcs.engine.behavior.ICache.update()


                {
                    try
                    {
                        // need to make sure the group cache understands that the
                        // key is a group attribute on update
                        aux.update( ce );
                        if ( log.isDebugEnabled() )
                        {
                            log.debug( "Updated remote store for "
                                 + ce.getKey() + ce );
                        }
View Full Code Here


                {
                    // later if we want a multicast, possibly delete abnormal broadcaster
                    // DISTRIBUTE LATERALLY
                    // Currently always multicast even if the value is unchanged,
                    // just to cause the cache item to move to the front.
                    aux.update( ce );
                    if ( log.isDebugEnabled() )
                    {
                        log.debug( "updated lateral cache for " + ce.getKey() );
                    }
                }
View Full Code Here

                            //hand.handleElementEvent( event );
                            addElementEvent( hand, event );
                        }
                    }

                    aux.update( ce );
                }
                catch ( IOException ex )
                {
                    // impossible case.
                    ex.printStackTrace();
View Full Code Here

                            if ( aux.getCacheType() == ICacheType.LATERAL_CACHE
                                 && !ce.getElementAttributes().getIsLateral() )
                            {
                                continue;
                            }
                            aux.update( ce );
                        }
                        catch ( Exception e )
                        {
                            log.error( e );
                        }
View Full Code Here

                        {
                            Map.Entry entry = ( Map.Entry ) itr.next();

                            ICacheElement ce = (ICacheElement) entry.getValue();

                            aux.update(ce);
                        }
                    }
                }
                catch ( IOException ex )
                {
View Full Code Here

                {
                    try
                    {
                        // need to make sure the group cache understands that
                        // the key is a group attribute on update
                        aux.update( cacheElement );
                        if ( log.isDebugEnabled() )
                        {
                            log.debug( "Updated remote store for " + cacheElement.getKey() + cacheElement );
                        }
                    }
View Full Code Here

                    // broadcaster
                    // DISTRIBUTE LATERALLY
                    // Currently always multicast even if the value is
                    // unchanged,
                    // just to cause the cache item to move to the front.
                    aux.update( cacheElement );
                    if ( log.isDebugEnabled() )
                    {
                        log.debug( "updated lateral cache for " + cacheElement.getKey() );
                    }
                }
View Full Code Here

                }
                if ( cacheAttr.getUseDisk()
                    && ( cacheAttr.getDiskUsagePattern() == ICompositeCacheAttributes.DISK_USAGE_PATTERN_UPDATE )
                    && cacheElement.getElementAttributes().getIsSpool() )
                {
                    aux.update( cacheElement );
                    if ( log.isDebugEnabled() )
                    {
                        log.debug( "updated disk cache for " + cacheElement.getKey() );
                    }
                }
View Full Code Here

                    // write the last items to disk.2
                    try
                    {
                        handleElementEvent( ce, IElementEventConstants.ELEMENT_EVENT_SPOOLED_DISK_AVAILABLE );

                        aux.update( ce );
                    }
                    catch ( IOException ex )
                    {
                        // impossible case.
                        log.error( "Problem spooling item to disk cache.", ex );
View Full Code Here

                        {
                            Map.Entry entry = (Map.Entry) itr.next();

                            ICacheElement ce = (ICacheElement) entry.getValue();

                            aux.update( ce );
                        }
                    }
                }
                catch ( IOException ex )
                {
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.