Class Cache
java.lang.Object
de.odysseus.el.tree.impl.Cache
- All Implemented Interfaces:
TreeCache
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final ConcurrentMap<String, Tree> private final ConcurrentLinkedQueue<String> private final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
map
-
queue
-
size
-
capacity
private final int capacity
-
-
Constructor Details
-
Cache
public Cache(int capacity) Creates a new cache with the specified capacity and default concurrency level (16).- Parameters:
capacity- Cache size. The actual size may exceed it temporarily.
-
Cache
public Cache(int capacity, int concurrencyLevel) Creates a new cache with the specified capacity and concurrency level.- Parameters:
capacity- Cache size. The actual map size may exceed it temporarily.concurrencyLevel- The estimated number of concurrently updating threads. The implementation performs internal sizing to try to accommodate this many threads.
-
-
Method Details
-
size
public int size() -
get
-
put
-