public class MetaDataCacheControl extends java.lang.Object implements CacheControl
Title: MetaDataCacheControl.java
Description: meta cache container control :flush,cache,remove
Copyright: Copyright (c) 2007
| 构造器和说明 |
|---|
MetaDataCacheControl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
flush(CacheModel cacheModel)
Flushes the cache.
|
java.lang.Object |
getObject(CacheModel cacheModel,
java.lang.Object key)
Get an object out of the cache.
|
MemoryCacheLevel |
getReferenceType() |
void |
putObject(CacheModel cacheModel,
java.lang.Object key,
java.lang.Object value)
Add an object to the cache
|
java.lang.Object |
removeObject(CacheModel cacheModel,
java.lang.Object key)
Remove an object from a cache model
|
void |
setProperties(java.util.Properties props)
Configures the cache
|
void |
setReferenceType(MemoryCacheLevel referenceType) |
public void setProperties(java.util.Properties props)
setProperties 在接口中 CacheControlprops - Optionally can contain properties [reference-type=WEAK|SOFT|STRONG]public MemoryCacheLevel getReferenceType()
public void setReferenceType(MemoryCacheLevel referenceType)
public void putObject(CacheModel cacheModel, java.lang.Object key, java.lang.Object value)
putObject 在接口中 CacheControlcacheModel - The cacheModelkey - The key of the object to be cachedvalue - The object to be cachedpublic java.lang.Object getObject(CacheModel cacheModel, java.lang.Object key)
getObject 在接口中 CacheControlcacheModel - The cache modelkey - The key of the object to be returnedpublic java.lang.Object removeObject(CacheModel cacheModel, java.lang.Object key)
CacheControlremoveObject 在接口中 CacheControlcacheModel - - the model to remove the object fromkey - - the key to the objectpublic void flush(CacheModel cacheModel)
flush 在接口中 CacheControlcacheModel - The cache model