public class GrailsConcurrentLinkedMapCache extends java.lang.Object implements GrailsCache
| Constructor and description |
|---|
GrailsConcurrentLinkedMapCache(java.lang.String name, long capacity, boolean allowNullValues)Create a new GrailsConcurrentLinkedMapCache with the specified name and capacity |
GrailsConcurrentLinkedMapCache(java.lang.String name, long capacity)Create a new GrailsConcurrentLinkedMapCache with the specified name and capacity |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
clear() |
|
public void |
evict(java.lang.Object key) |
|
protected java.lang.Object |
fromStoreValue(java.lang.Object storeValue)Convert the given value from the internal store to a user value returned from the get method (adapting null). |
|
public GrailsValueWrapper |
get(java.lang.Object key) |
<T> |
public T |
get(java.lang.Object key, java.lang.Class<T> type) |
<T> |
public T |
get(java.lang.Object key, java.util.concurrent.Callable<T> valueLoader) |
|
public java.util.Collection<java.lang.Object> |
getAllKeys() |
|
public final long |
getCapacity() |
|
public java.util.Collection<java.lang.Object> |
getHottestKeys() |
|
public final java.lang.String |
getName() |
|
public final java.util.concurrent.ConcurrentMap<java.lang.Object, java.lang.Object> |
getNativeCache() |
|
public final int |
getSize() |
|
public final boolean |
isAllowNullValues() |
|
public void |
put(java.lang.Object key, java.lang.Object value) |
|
public ValueWrapper |
putIfAbsent(java.lang.Object key, java.lang.Object value) |
|
protected java.lang.Object |
toStoreValue(java.lang.Object userValue)Convert the given user value, as passed into the put method, to a value in the internal store (adapting null). |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Create a new GrailsConcurrentLinkedMapCache with the specified name and capacity
name - the name of the cachecapacity - of the mapallowNullValues - null values (default is true)Create a new GrailsConcurrentLinkedMapCache with the specified name and capacity
name - the name of the cachecapacity - of the map Convert the given value from the internal store to a user value
returned from the get method (adapting null).
storeValue - the store value Convert the given user value, as passed into the put method,
to a value in the internal store (adapting null).
userValue - the given user value