Package com.avoka.core.util
Class JCacheQueryCacheTraceWrapper
java.lang.Object
com.avoka.core.util.JCacheQueryCacheTraceWrapper
- All Implemented Interfaces:
org.apache.cayenne.cache.QueryCache
public class JCacheQueryCacheTraceWrapper
extends Object
implements org.apache.cayenne.cache.QueryCache
A QueryCache decorator that adds extra debugging information.
- Since:
- 21.11.0
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJCacheQueryCacheTraceWrapper
(org.apache.cayenne.jcache.JCacheQueryCache delegate) Creates a new JCacheQueryCacheTraceWrapper with a delegate JCacheQueryCache. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.get
(org.apache.cayenne.query.QueryMetadata metadata) get
(org.apache.cayenne.query.QueryMetadata metadata, org.apache.cayenne.cache.QueryCacheEntryFactory factory) void
void
void
removeGroup
(String groupKey) void
removeGroup
(String groupKey, Class<?> keyType, Class<?> valueType)
-
Field Details
-
logger
protected org.slf4j.Logger logger
-
-
Constructor Details
-
JCacheQueryCacheTraceWrapper
public JCacheQueryCacheTraceWrapper(org.apache.cayenne.jcache.JCacheQueryCache delegate) Creates a new JCacheQueryCacheTraceWrapper with a delegate JCacheQueryCache.- Parameters:
delegate
- an actual JCacheQueryCache implementation, such as EhCacheQueryCache that will be delegated all the API calls.
-
-
Method Details
-
get
- Specified by:
get
in interfaceorg.apache.cayenne.cache.QueryCache
-
get
public List get(org.apache.cayenne.query.QueryMetadata metadata, org.apache.cayenne.cache.QueryCacheEntryFactory factory) - Specified by:
get
in interfaceorg.apache.cayenne.cache.QueryCache
-
put
- Specified by:
put
in interfaceorg.apache.cayenne.cache.QueryCache
-
remove
- Specified by:
remove
in interfaceorg.apache.cayenne.cache.QueryCache
-
removeGroup
- Specified by:
removeGroup
in interfaceorg.apache.cayenne.cache.QueryCache
-
removeGroup
- Specified by:
removeGroup
in interfaceorg.apache.cayenne.cache.QueryCache
-
clear
Deprecated.- Specified by:
clear
in interfaceorg.apache.cayenne.cache.QueryCache
-