public class NoOpMethodResultCache extends MethodResultCache
Constructor and Description |
---|
NoOpMethodResultCache(org.apache.commons.jcs.access.GroupCacheAccess<MethodCacheKey,Object> cache) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the cache
|
<T> T |
get(Serializable instanceOrClass,
String method,
Serializable... arg)
Get an object from the method cache
|
protected Object |
getImpl(MethodCacheKey key) |
<T> void |
put(T value,
Serializable instanceOrClass,
String method,
Serializable... arg)
Put an object into the method cache
|
protected Object |
putImpl(MethodCacheKey key,
Object value) |
<T> T |
remove(Serializable instanceOrClass,
String method,
Serializable... arg)
Remove object from method cache
|
void |
removeAll(Serializable instanceOrClass,
String method)
Remove all objects of the same group
|
protected Object |
removeImpl(MethodCacheKey key) |
public NoOpMethodResultCache(org.apache.commons.jcs.access.GroupCacheAccess<MethodCacheKey,Object> cache)
public void clear()
clear
in class MethodResultCache
protected Object getImpl(MethodCacheKey key)
getImpl
in class MethodResultCache
MethodResultCache.getImpl(org.apache.torque.manager.MethodCacheKey)
protected Object putImpl(MethodCacheKey key, Object value) throws TorqueException
putImpl
in class MethodResultCache
TorqueException
MethodResultCache.putImpl(org.apache.torque.manager.MethodCacheKey, java.lang.Object)
protected Object removeImpl(MethodCacheKey key)
removeImpl
in class MethodResultCache
MethodResultCache.removeImpl(org.apache.torque.manager.MethodCacheKey)
public <T> T get(Serializable instanceOrClass, String method, Serializable... arg)
MethodResultCache
get
in class MethodResultCache
T
- type of the instance classinstanceOrClass
- the Object on which the method is invoked. if
the method is static, a String representing the class name is used.method
- the method namearg
- optional arguments for the methodMethodResultCache.get(
java.io.Serializable,
java.lang.String, java.io.Serializable[])
public <T> void put(T value, Serializable instanceOrClass, String method, Serializable... arg)
MethodResultCache
put
in class MethodResultCache
T
- type of the instance classvalue
- the object to put into the cacheinstanceOrClass
- the Object on which the method is invoked. if
the method is static, a String representing the class name is used.method
- the method namearg
- optional arguments for the methodMethodResultCache.put(
java.lang.Object, java.io.Serializable,
java.lang.String, java.io.Serializable[])
public void removeAll(Serializable instanceOrClass, String method)
MethodResultCache
removeAll
in class MethodResultCache
instanceOrClass
- the Object on which the method is invoked. if
the method is static, a String representing the class name is used.method
- the method nameMethodResultCache.removeAll(java.io.Serializable, java.lang.String)
public <T> T remove(Serializable instanceOrClass, String method, Serializable... arg)
MethodResultCache
remove
in class MethodResultCache
T
- type of the instance classinstanceOrClass
- the Object on which the method is invoked. if
the method is static, a String representing the class name is used.method
- the method namearg
- optional arguments for the methodMethodResultCache.remove(java.io.Serializable, java.lang.String, java.io.Serializable[])
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.