public class ConcurrentFixedCache extends Object implements 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() |
Object |
get(Object key)
Return the pre-parsed query that represents the EJBQL string.
|
Map |
getCache()
Return the cache.
|
int |
getMaxSize()
Return the fixed size of the parse cache.
|
void |
put(Object key,
Object value)
Add the value to the cache.
|
void |
remove(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 Object get(Object key)
public void clear()
public void remove(Object key)
public Map getCache()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference