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
FieldsModifier and TypeFieldDescriptionprotected static final Map<String, ConversionCacheEntry> static final AtomicLongprotected static final ReentrantReadWriteLockstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToCache(String key, BlobHolder result) static voidstatic voidDeprecated, for removal: This API element is subject to removal in a future version.protected static voiddoAddToCache(String key, BlobHolder result) protected static ConversionCacheEntrydoGetCacheEntry(String key) protected static BlobHolderdoGetFromCache(String key) protected static voiddoRemoveFromCache(String key) static ConversionCacheEntrygetCacheEntry(String key) protected static StringgetCacheEntryPath(String key) static longstatic BlobHoldergetFromCache(String key) static intgetSubPathFromKey(String key) static voidremoveFromCache(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
Deprecated, for removal: This API element is subject to removal in a future version.since 2025.0, useclearCache()instead- Since:
- 6.0
-
clearCache
public static void clearCache()- Since:
- 2025.0
-
clearCache()instead