public class ConversionCacheHolder extends Object
ConversionService
.Modifier and Type | Field and Description |
---|---|
protected static Map<String,ConversionCacheEntry> |
cache |
static long |
cacheHits |
protected static ReentrantReadWriteLock |
cacheLock |
static int |
nbSubPathPart |
static int |
subPathPartSize |
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 int nbSubPathPart
public static int subPathPartSize
public static long cacheHits
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 © 2016 Nuxeo SA. All rights reserved.