Package org.sonar.java.caching
Class JavaWriteCacheImpl
java.lang.Object
org.sonar.java.caching.JavaWriteCacheImpl
- All Implemented Interfaces:
JavaWriteCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copyFromPrevious
(String key) Copy a cached entry from the previous cache to the new one.boolean
int
hashCode()
void
Save a new entry in the cache.void
write
(String key, InputStream data) Save a new entry in the cache.
-
Constructor Details
-
JavaWriteCacheImpl
public JavaWriteCacheImpl(org.sonar.api.batch.sensor.cache.WriteCache writeCache)
-
-
Method Details
-
write
Description copied from interface:JavaWriteCache
Save a new entry in the cache. The stream will be consumed immediately.- Specified by:
write
in interfaceJavaWriteCache
-
write
Description copied from interface:JavaWriteCache
Save a new entry in the cache.- Specified by:
write
in interfaceJavaWriteCache
-
copyFromPrevious
Description copied from interface:JavaWriteCache
Copy a cached entry from the previous cache to the new one.- Specified by:
copyFromPrevious
in interfaceJavaWriteCache
-
equals
-
hashCode
-