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 TypMethodeBeschreibungvoidclear()Clear the cache<T> Tget(Serializable instanceOrClass, String method, Serializable... arg) Get an object from the method cacheprotected ObjectgetImpl(MethodCacheKey key) <T> voidput(T value, Serializable instanceOrClass, String method, Serializable... arg) Put an object into the method cacheprotected ObjectputImpl(MethodCacheKey key, Object value) <T> Tremove(Serializable instanceOrClass, String method, Serializable... arg) Remove object from method cachevoidremoveAll(Serializable instanceOrClass, String method) Remove all objects of the same groupprotected ObjectremoveImpl(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:
clearin KlasseMethodResultCache
-
getImpl
- Setzt außer Kraft:
getImplin KlasseMethodResultCache- Siehe auch:
-
putImpl
- Setzt außer Kraft:
putImplin KlasseMethodResultCache- Löst aus:
TorqueException- Siehe auch:
-
removeImpl
- Setzt außer Kraft:
removeImplin KlasseMethodResultCache- Siehe auch:
-
get
Beschreibung aus Klasse kopiert:MethodResultCacheGet an object from the method cache- Setzt außer Kraft:
getin 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:MethodResultCachePut an object into the method cache- Setzt außer Kraft:
putin 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:MethodResultCacheRemove all objects of the same group- Setzt außer Kraft:
removeAllin 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:MethodResultCacheRemove object from method cache- Setzt außer Kraft:
removein 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:
-