Package org.nuxeo.ecm.core.convert.cache
Class ConversionCacheHolder
java.lang.Object
org.nuxeo.ecm.core.convert.cache.ConversionCacheHolder
Manager for the cache system of the
ConversionService
.- Author:
- tiry
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Map<String,
ConversionCacheEntry> static final AtomicLong
protected static final ReentrantReadWriteLock
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToCache
(String key, BlobHolder result) static void
protected static void
doAddToCache
(String key, BlobHolder result) protected static ConversionCacheEntry
doGetCacheEntry
(String key) protected static BlobHolder
doGetFromCache
(String key) protected static void
doRemoveFromCache
(String key) static ConversionCacheEntry
getCacheEntry
(String key) protected static String
getCacheEntryPath
(String key) static long
static BlobHolder
getFromCache
(String key) static int
getSubPathFromKey
(String key) static void
removeFromCache
(String key)
-
Field Details
-
cache
-
cacheLock
-
NB_SUB_PATH_PART
public static final int NB_SUB_PATH_PART- See Also:
-
SUB_PATH_PART_SIZE
public static final int SUB_PATH_PART_SIZE- See Also:
-
CACHE_HITS
-
-
Method Details
-
getCacheHits
public static long getCacheHits() -
getNbCacheEntries
public static int getNbCacheEntries() -
getSubPathFromKey
-
getCacheEntryPath
-
addToCache
-
doAddToCache
-
removeFromCache
-
doRemoveFromCache
-
getCacheEntry
-
doGetCacheEntry
-
getFromCache
-
doGetFromCache
-
getCacheKeys
-
deleteCache
public static void deleteCache()- Since:
- 6.0
-