public class SimpleInvocationCacheMixin extends Object implements InvocationCache
This InvocationCache should typically not be used at all, and only serves as an
example. The @{code cachedValues} member is never emptied, so it constitutes a memory leak
if the method arguments keep changing.
IMPORTANT: Only use this is you know that only a small set of arguments are used into your method(s).
| Constructor and Description |
|---|
SimpleInvocationCacheMixin() |
| Modifier and Type | Method and Description |
|---|---|
Object |
cachedValue(String name) |
void |
clearCachedValues() |
int |
currentCacheSize() |
Object |
removeCachedValue(String name) |
Object |
setCachedValue(String name,
Object aResult) |
public Object setCachedValue(String name, Object aResult)
setCachedValue in interface InvocationCachepublic Object cachedValue(String name)
cachedValue in interface InvocationCachepublic Object removeCachedValue(String name)
removeCachedValue in interface InvocationCachepublic void clearCachedValues()
clearCachedValues in interface InvocationCachepublic int currentCacheSize()
currentCacheSize in interface InvocationCache