Package org.sonar.python.caching
Class CacheContextImpl
- java.lang.Object
-
- org.sonar.python.caching.CacheContextImpl
-
- All Implemented Interfaces:
CacheContext
public class CacheContextImpl extends Object implements CacheContext
-
-
Constructor Summary
Constructors Constructor Description CacheContextImpl(boolean isCacheEnabled, PythonWriteCache writeCache, PythonReadCache readCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CacheContextImpldummyCache()PythonReadCachegetReadCache()PythonWriteCachegetWriteCache()booleanisCacheEnabled()static CacheContextImplof(org.sonar.api.batch.sensor.SensorContext context)
-
-
-
Constructor Detail
-
CacheContextImpl
public CacheContextImpl(boolean isCacheEnabled, PythonWriteCache writeCache, PythonReadCache readCache)
-
-
Method Detail
-
isCacheEnabled
public boolean isCacheEnabled()
- Specified by:
isCacheEnabledin interfaceCacheContext
-
getReadCache
public PythonReadCache getReadCache()
- Specified by:
getReadCachein interfaceCacheContext
-
getWriteCache
public PythonWriteCache getWriteCache()
- Specified by:
getWriteCachein interfaceCacheContext
-
of
public static CacheContextImpl of(org.sonar.api.batch.sensor.SensorContext context)
-
dummyCache
public static CacheContextImpl dummyCache()
-
-