public class ProviderCache extends AbstractCache<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>
DEFAULT_CACHE_ON, DEFAULT_CACHE_TTL, DEFAULT_CONCURRENCY_LEVEL, DEFAULT_MAX_CACHE_SIZE, DEFAULT_START_CACHE_SIZE
Constructor and Description |
---|
ProviderCache()
default constructor that will use default values for the cache.
|
ProviderCache(int concurrencyLevel,
int cacheStartSize,
int cacheMaxSize,
long ttl) |
Modifier and Type | Method and Description |
---|---|
void |
merge(java.lang.String key,
java.util.Map<java.lang.String,java.lang.Object> data,
java.util.Map<java.lang.String,java.lang.Object> returnedResult)
merge the doc into the current cached item, if it exists.
|
clear, get, keySet, put, remove, removeAll, setCacheMode
public ProviderCache()
public ProviderCache(int concurrencyLevel, int cacheStartSize, int cacheMaxSize, long ttl)
concurrencyLevel
- cache concurreny levelcacheStartSize
- starting cache sizecacheMaxSize
- the initial size of the cache.ttl
- expiration time for cache entries in millisecondspublic void merge(java.lang.String key, java.util.Map<java.lang.String,java.lang.Object> data, java.util.Map<java.lang.String,java.lang.Object> returnedResult)
AbstractCache
merge
in class AbstractCache<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>>
key
- the key into the cachedata
- the changed itemsreturnedResult
- the returned result"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"