Package org.apache.torque.manager
Klasse NoOpMethodResultCache
java.lang.Object
org.apache.torque.manager.MethodResultCache
org.apache.torque.manager.NoOpMethodResultCache
This class provides a no-op cache for convenient storage of method results
- Version:
- $Id: NoOpMethodResultCache.java 1917233 2024-04-21 11:37:11Z tv $
- Autor:
- John McNally
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungNoOpMethodResultCache
(org.apache.commons.jcs3.access.GroupCacheAccess<MethodCacheKey, Object> cache) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
clear()
Clear the cache<T> T
get
(Serializable instanceOrClass, String method, Serializable... arg) Get an object from the method cacheprotected Object
getImpl
(MethodCacheKey key) <T> void
put
(T value, Serializable instanceOrClass, String method, Serializable... arg) Put an object into the method cacheprotected Object
putImpl
(MethodCacheKey key, Object value) <T> T
remove
(Serializable instanceOrClass, String method, Serializable... arg) Remove object from method cachevoid
removeAll
(Serializable instanceOrClass, String method) Remove all objects of the same groupprotected Object
removeImpl
(MethodCacheKey key)
-
Konstruktordetails
-
NoOpMethodResultCache
public NoOpMethodResultCache(org.apache.commons.jcs3.access.GroupCacheAccess<MethodCacheKey, Object> cache)
-
-
Methodendetails
-
clear
public void clear()Clear the cache- Setzt außer Kraft:
clear
in KlasseMethodResultCache
-
getImpl
- Setzt außer Kraft:
getImpl
in KlasseMethodResultCache
- Siehe auch:
-
putImpl
- Setzt außer Kraft:
putImpl
in KlasseMethodResultCache
- Löst aus:
TorqueException
- Siehe auch:
-
removeImpl
- Setzt außer Kraft:
removeImpl
in KlasseMethodResultCache
- Siehe auch:
-
get
Beschreibung aus Klasse kopiert:MethodResultCache
Get an object from the method cache- Setzt außer Kraft:
get
in KlasseMethodResultCache
- Typparameter:
T
- type of the instance class- Parameter:
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 namearg
- optional arguments for the method- Gibt zurück:
- the object or null if it does not exist
- Siehe auch:
-
put
Beschreibung aus Klasse kopiert:MethodResultCache
Put an object into the method cache- Setzt außer Kraft:
put
in KlasseMethodResultCache
- Typparameter:
T
- type of the instance class- Parameter:
value
- 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 method- Siehe auch:
-
removeAll
Beschreibung aus Klasse kopiert:MethodResultCache
Remove all objects of the same group- Setzt außer Kraft:
removeAll
in KlasseMethodResultCache
- Parameter:
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 name- Siehe auch:
-
remove
Beschreibung aus Klasse kopiert:MethodResultCache
Remove object from method cache- Setzt außer Kraft:
remove
in KlasseMethodResultCache
- Typparameter:
T
- type of the instance class- Parameter:
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 namearg
- optional arguments for the method- Gibt zurück:
- the removed object
- Siehe auch:
-