public class ConversionCacheHolder extends Object
ConversionService
.Modifier and Type | Field and Description |
---|---|
protected static Map<String,ConversionCacheEntry> |
cache |
static AtomicLong |
CACHE_HITS |
protected static ReentrantReadWriteLock |
cacheLock |
static int |
NB_SUB_PATH_PART |
static int |
SUB_PATH_PART_SIZE |
Modifier and Type | Method and Description |
---|---|
static void |
addToCache(String key,
BlobHolder result) |
static void |
deleteCache() |
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 |
getCacheHits() |
static Set<String> |
getCacheKeys() |
static BlobHolder |
getFromCache(String key) |
static int |
getNbCacheEntries() |
protected static List<String> |
getSubPathFromKey(String key) |
static void |
removeFromCache(String key) |
protected static final Map<String,ConversionCacheEntry> cache
protected static final ReentrantReadWriteLock cacheLock
public static final int NB_SUB_PATH_PART
public static final int SUB_PATH_PART_SIZE
public static final AtomicLong CACHE_HITS
public static long getCacheHits()
public static int getNbCacheEntries()
protected static List<String> getSubPathFromKey(String key)
protected static String getCacheEntryPath(String key)
public static void addToCache(String key, BlobHolder result)
protected static void doAddToCache(String key, BlobHolder result)
public static void removeFromCache(String key)
protected static void doRemoveFromCache(String key)
public static ConversionCacheEntry getCacheEntry(String key)
protected static ConversionCacheEntry doGetCacheEntry(String key)
public static BlobHolder getFromCache(String key)
protected static BlobHolder doGetFromCache(String key)
public static Set<String> getCacheKeys()
public static void deleteCache()
Copyright © 2018 Nuxeo. All rights reserved.