Class CacheContextImpl
java.lang.Object
org.sonar.java.caching.CacheContextImpl
- All Implemented Interfaces:
CacheContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCan be set totrueorfalseto override whether the cache is enabled or not. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDescribes whether caching facilities are available in this context.static CacheContextImplof(SonarComponents sonarComponents)
-
Field Details
-
SONAR_CACHING_ENABLED_KEY
Can be set totrueorfalseto override whether the cache is enabled or not. Note that even if this is set to true, the engine may not use caching anyway, if the server does not support it.- See Also:
-
-
Method Details
-
of
-
isCacheEnabled
public boolean isCacheEnabled()Description copied from interface:CacheContextDescribes whether caching facilities are available in this context.- Specified by:
isCacheEnabledin interfaceCacheContext- Returns:
- True if the server allows caching, false otherwise
-
getReadCache
- Specified by:
getReadCachein interfaceCacheContext
-
getWriteCache
- Specified by:
getWriteCachein interfaceCacheContext
-