public class ConcurrentFixedCache
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ConcurrentFixedCache()
Create a new concurrent cache, with a fixed size of 100.
|
ConcurrentFixedCache(int maxSize)
Create a new concurrent cache, with the max size.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
get(java.lang.Object key)
Return the pre-parsed query that represents the EJBQL string.
|
java.util.Map |
getCache()
Return the cache.
|
int |
getMaxSize()
Return the fixed size of the parse cache.
|
void |
put(java.lang.Object key,
java.lang.Object value)
Add the value to the cache.
|
void |
remove(java.lang.Object key)
Remove from cache.
|
void |
setMaxSize(int maxSize)
Set the fixed size of the parse cache.
|
public ConcurrentFixedCache()
public ConcurrentFixedCache(int maxSize)
public int getMaxSize()
public void setMaxSize(int maxSize)
public java.lang.Object get(java.lang.Object key)
public void clear()
public void put(java.lang.Object key, java.lang.Object value)
public void remove(java.lang.Object key)
public java.util.Map getCache()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference