All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.com.google.common.cache.GuavaCache.dml Maven / Gradle / Ivy

%1470809785560
@
sname=GuavaCache
slabel=GuavaCache
sdescriptors=xworker.lang.MetaDescriptor3
smany=true
seditCols=2
sinitialization=false
sgroup=util.cache,com.google.common.cache
smodifier=public
sinheritDescription=false
Sdescription=
#$@text#$@

使用Guava的缓存配置,可以通过它获取缓存对象。

Cache实例

    创建后保存在World对象的data里,key是<动作路径_cache>, 如路径是xxx.Cache,那么key是xxx.Cache_cache。

可以重写方法:

  • Object load(Object key)
    CacheLoader里通过key获取value,需要重写该方法。
     
  • Cache create()
    创建Guaava的Cache。
     
  • int getConcurrencyLevel()
    返回并发的级别。

 

 

#$@text#$@ snotXmlAttribute=false sjson_isArray=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false @/@actions sname=actions sdescriptors=xworker.lang.MetaDescriptor3/@actions sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=actions @/@actions/@create sname=create sisSynchronized=false sthrowException=true suseOtherAction=false suseOuterJava=true suseInnerJava=false souterClassName=xworker.core.cache.CacheActions smethodName=create sdisableGlobalContext=false sattributeTemplate=false sinterpretationType=Action svarScope=Global screateLocalVarScope=false ssaveReturn=false sdebugLog=false sdescriptors=xworker.lang.actions.Actions/@JavaAction sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=create @/@actions/@getCache sname=getCache sisSynchronized=false sthrowException=true suseOtherAction=false suseOuterJava=true suseInnerJava=false souterClassName=xworker.core.cache.CacheActions smethodName=getCache sdisableGlobalContext=false sattributeTemplate=false sinterpretationType=Action svarScope=Global screateLocalVarScope=false ssaveReturn=false sdebugLog=false sdescriptors=xworker.lang.actions.Actions/@JavaAction sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=getCache @/@actions/@remove sname=remove sisSynchronized=false sthrowException=true suseOtherAction=false suseOuterJava=true suseInnerJava=false souterClassName=xworker.core.cache.CacheActions smethodName=remove sdisableGlobalContext=false sattributeTemplate=false sinterpretationType=Action svarScope=Global screateLocalVarScope=false ssaveReturn=false sdebugLog=false sdescriptors=xworker.lang.actions.Actions/@JavaAction sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=remove @/@actions/@clear sname=cleanUp sisSynchronized=false sthrowException=true suseOtherAction=false suseOuterJava=true suseInnerJava=false souterClassName=xworker.core.cache.CacheActions smethodName=cleanUp sdisableGlobalContext=false sattributeTemplate=false sinterpretationType=Action svarScope=Global screateLocalVarScope=false ssaveReturn=false sdebugLog=false sdescriptors=xworker.lang.actions.Actions/@JavaAction sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=clear @/@actions/@printStatus sname=printStatus sisSynchronized=false sthrowException=true suseOtherAction=false suseOuterJava=true suseInnerJava=false souterClassName=xworker.core.cache.CacheActions smethodName=printStatus sdisableGlobalContext=false sattributeTemplate=false sinterpretationType=Action svarScope=Global screateLocalVarScope=false ssaveReturn=false sdebugLog=false sdescriptors=xworker.lang.actions.Actions/@JavaAction sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=printStatus @/@actions/@getCncurrencyLevel sname=getConcurrencyLevel sattributeName=concurrencyLevel sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetInt sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=getCncurrencyLevel @/@actions/@getExpireAfterAccess sname=getExpireAfterAccess sattributeName=expireAfterAccess sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetLong sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=getExpireAfterAccess @/@actions/@getExpireAfterWrite sname=getExpireAfterWrite sattributeName=expireAfterWrite sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetLong sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=getExpireAfterWrite @/@actions/@getInitialCapacity sname=getInitialCapacity sattributeName=initialCapacity sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetInt sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=getInitialCapacity @/@actions/@getMaximumSize sname=getMaximumSize sattributeName=maximumSize sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetInt sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=getMaximumSize @/@actions/@isSoftValues sname=isSoftValues sattributeName=softValues sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetBoolean sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=isSoftValues @/@actions/@isWeakKeys sname=isWeakKeys sattributeName=weakKeys sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetBoolean sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=isWeakKeys @/@actions/@isWeakValues sname=isWeakValues sattributeName=weakValues sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetBoolean sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=isWeakValues @/@actions/@load sname=load sdescriptors=xworker.lang.actions.Actions/@NOOP sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=load @/@actions/@getKey sname=getKey sattributeName=key snotNull=false sinterpretationType=Self sattributeTemplate=false schildsAttributeTemplate=false svarScope=Local sisSynchronized=false sthrowException=true suseOtherAction=false screateLocalVarScope=false ssaveReturn=false sdisableGlobalContext=false sdebugLog=false sdescriptors=xworker.lang.actions.ActionUtil/@GetData sinheritDescription=false sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=getKey @/@name sname=name sshowLabel=true sreadOnly=false sinheritDescription=false svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=name @/@label sname=label sshowLabel=true sreadOnly=false sinheritDescription=false svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=label @/@refCache sname=refCache sinputtype=dataSelector sshowLabel=true ssize=60 sreadOnly=false sinheritDescription=false svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=refCache @/@key sname=key sshowLabel=true sreadOnly=false sinheritDescription=false svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=key @/@concurrencyLevel sname=concurrencyLevel sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Guides the allowed concurrency among update operations.

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=concurrencyLevel @/@duration sname=expireAfterAccess sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or last access.

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=duration @/@expireAfterWrite sname=expireAfterWrite sinputtype=text sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Specifies that each entry should be automatically removed from the cache once a fixed duration has elapsed after the entry's creation, or the most recent replacement of its value.

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=expireAfterWrite @/@initialCapacity sname=initialCapacity sinputtype=text sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Sets the minimum total size for the internal hash tables.

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=initialCapacity @/@maximumSize sname=maximumSize sinputtype=text sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Specifies the maximum number of entries the cache may contain.

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=maximumSize @/@softValues sname=softValues sinputtype=truefalse sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Specifies that each value (not key) stored in the cache should be wrapped in a SoftReference (by default, strong references are used).

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=softValues @/@weakKeys sname=weakKeys sinputtype=truefalse sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Specifies that each key (not value) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=weakKeys @/@weakValues sname=weakValues sinputtype=truefalse sshowLabel=true sreadOnly=false sinheritDescription=false sdescription=

Specifies that each value (not key) stored in the cache should be wrapped in a WeakReference (by default, strong references are used).

svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=weakValues @/@description sname=description sinputtype=html sshowLabel=true sreadOnly=false sinheritDescription=false svalidateAllowBlank=true LvalidateOnBlur=true LallowDecimals=true LallowNegative=true snotXmlAttribute=false sdescriptors=xworker.lang.MetaDescriptor3/@attribute sth_createIndex=false sth_registMyChilds=false sth_registDisabled=false sth_mark=false sid=description




© 2015 - 2024 Weber Informatics LLC | Privacy Policy