Examples of LRUMap


Examples of com.alibaba.cobar.client.support.LRUMap

        if (isEnableCache()) {
            ProxyFactory proxyFactory = new ProxyFactory(routerToUse);
            proxyFactory.setInterfaces(new Class[] { ICobarRouter.class });
            RoutingResultCacheAspect advice = new RoutingResultCacheAspect();
            if (cacheSize > 0) {
                advice.setInternalCache(new LRUMap(cacheSize));
            }
            proxyFactory.addAdvice(advice);
            this.router = (ICobarRouter<IBatisRoutingFact>) proxyFactory.getProxy();
        } else {
            this.router = routerToUse;
View Full Code Here

Examples of com.dotcms.repackage.org.apache.commons.collections.map.LRUMap

        Logger.error(this.getClass(), "***\t Unable to start disk cache: " + e.getMessage(), e);
        cacheToDisk.clear();
      }
    }
   
    cacheStatus = new LRUMap(100);
  }
View Full Code Here

Examples of com.sun.faces.util.LRUMap

    protected String reset = "Unique Id Counter Has Been Reset";

    public String getReset() {
        FacesContext context = FacesContext.getCurrentInstance();
        LRUMap lruMap = new LRUMap(15);
        context.getExternalContext().getSessionMap().put(RequestStateManager.LOGICAL_VIEW_MAP, lruMap);
        StateManagerImpl stateManagerImpl =
            (StateManagerImpl) context.getApplication().getStateManager();
        TestingUtil.setPrivateField("requestIdSerial",
                                    StateManagerImpl.class,
View Full Code Here

Examples of de.netseeker.ejoe.cache.LRUMap

     */
    protected synchronized Class loadClass( String name, boolean resolve ) throws ClassNotFoundException
    {
        if ( _classCache == null )
        {
            _classCache = new LRUMap();
        }

        Class clazz = (Class) _classCache.get( name );

        if ( clazz == null )
View Full Code Here

Examples of org.ajax4jsf.util.LRUMap

      synchronized (session) {
        SynchronizedStateHolder viewStates = (SynchronizedStateHolder) externalContext.getSessionMap()
            .get(VIEW_STATES_MAP);
        if (null != viewStates) {
          synchronized (viewStates) {
            LRUMap stateMap = viewStates.getStateMap();
            LRUMap logicalStates = (LRUMap) stateMap.get(viewId);
            if (null != logicalStates) {
              if (null != id) {
                restoredState = (Object[]) logicalStates.get(id);
                externalContext.getRequestMap().put(VIEW_SEQUENCE,
                    id);
                if (null == restoredState) {
                  if (_log.isDebugEnabled()) {
                    _log
View Full Code Here

Examples of org.apache.axis.collections.LRUMap

     */
    public NotSoSimpleAxisServer( File docRootDir, int maxPoolSize, int maxSessions )
    {
        m_docRootDir = docRootDir;
        m_pool = new ThreadPool( maxPoolSize );
        m_sessions = new LRUMap( maxSessions );
    }
View Full Code Here

Examples of org.apache.commons.collections.LRUMap

  public synchronized int size() {
    return cache.size();
  }

  private void init() {
    cache = new LRUMap( strongReferenceCount );
  }
View Full Code Here

Examples of org.apache.commons.collections.LRUMap

  public synchronized int softSize() {
    return softReferenceCache.size();
  }

  private void init() {
    strongReferenceCache = new LRUMap( strongReferenceCount );
  }
View Full Code Here

Examples of org.apache.commons.collections.LRUMap

     * @param globalCacheSize maximum size in objects of global cache
     * @param name the name used to construct logging category / channel
     * @param logger Slide logger to be used for logging
     */
    public TxLRUObjectCache(int globalCacheSize, String name, Logger logger) {
        globalCache = new LRUMap(globalCacheSize);
        txChangeCaches = new HashMap();
        txDeleteCaches = new HashMap();

        this.name = name;
        this.logger = logger;
View Full Code Here

Examples of org.apache.commons.collections.map.LRUMap

            this.cacheKey = key.toString();
            // check cache
            synchronized (cache) {
                Map m = (Map) cache.get(reader);
                if (m == null) {
                    m = new LRUMap(10);
                    cache.put(reader, m);
                }
                resultMap = m;
            }
            synchronized (resultMap) {
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.