public abstract class RongCacheWrap<K,V> extends RongCache<K,V>
| 构造器和说明 | 
|---|
RongCacheWrap(RongContext context,
             int maxSize)  | 
| 限定符和类型 | 方法和说明 | 
|---|---|
protected V | 
create(K key)
Called after a cache miss to compute a value for the corresponding key. 
 | 
void | 
executeCacheProvider(K key)  | 
protected RongContext | 
getContext()  | 
boolean | 
isIsSync()  | 
abstract V | 
obtainValue(K key)  | 
void | 
setIsSync(boolean isSync)  | 
public RongCacheWrap(RongContext context, int maxSize)
maxSize - for caches that do not override RongCache.sizeOf(K, V), this is
                the maximum number of entries in the cache. For all other caches,
                this is the maximum sum of the sizes of the entries in this cache.public boolean isIsSync()
public void setIsSync(boolean isSync)
protected V create(K key)
RongCacheThe method is called without synchronization: other threads may access the cache while this method is executing.
If a value for key exists in the cache when this method
 returns, the created value will be released with RongCache.entryRemoved(boolean, K, V, V)
 and discarded. This can occur when multiple threads request the same key
 at the same time (causing multiple values to be created), or when one
 thread calls RongCache.put(K, V) while another is creating a value for the same
 key.
protected RongContext getContext()
public void executeCacheProvider(K key)