org.activiti.engine.impl.juel
类 Cache

java.lang.Object
  继承者 org.activiti.engine.impl.juel.Cache
所有已实现的接口:
TreeCache

public final class Cache
extends Object
implements TreeCache

Simple (thread-safe) LRU cache. After the cache size reached a certain limit, the least recently used entry is removed, when adding a new entry.

作者:
Christoph Beck

构造方法摘要
Cache(int size)
          Constructor.
Cache(int size, Map<String,Tree> secondary)
          Constructor.
 
方法摘要
 Tree get(String expression)
          Lookup tree
 void put(String expression, Tree tree)
          Cache tree
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

Cache

public Cache(int size)
Constructor. Use a WeakHashMap as secondary map.

参数:
size - maximum primary cache size

Cache

public Cache(int size,
             Map<String,Tree> secondary)
Constructor. If the least recently used entry is removed from the primary cache, it is added to the secondary map.

参数:
size - maximum primary cache size
secondary - the secondary map (may be null)
方法详细信息

get

public Tree get(String expression)
从接口 TreeCache 复制的描述
Lookup tree

指定者:
接口 TreeCache 中的 get

put

public void put(String expression,
                Tree tree)
从接口 TreeCache 复制的描述
Cache tree

指定者:
接口 TreeCache 中的 put


Copyright © 2013 Alfresco. All rights reserved.