public class StoreCache extends BaseTableLoadCaching<java.lang.String,StoreBean>
LoadingCacheITableCache.ImmutableEntry<K,V>, ITableCache.UpdateStrategycacheMap, tableListenerDEFAULT_CACHE_MAXIMUMSIZE, DEFAULT_DURATION, DEFAULT_STRATEGY, DEFAULT_TIME_UNIT| 构造器和说明 |
|---|
StoreCache() |
StoreCache(ITableCache.UpdateStrategy updateStrategy,
long maximumSize,
long duration,
java.util.concurrent.TimeUnit unit)
constructor
|
StoreCache(long maximumSize) |
StoreCache(long maximumSize,
long durationMinutes) |
StoreCache(long maximumSize,
long duration,
java.util.concurrent.TimeUnit unit) |
| 限定符和类型 | 方法和说明 |
|---|---|
StoreBean |
getBeanByMd5(java.lang.String md5) |
StoreBean |
getBeanByMd5Unchecked(java.lang.String md5) |
protected StoreBean |
loadfromDatabase(java.lang.String key) |
void |
registerListener() |
protected java.lang.String |
returnKey(StoreBean bean) |
void |
unregisterListener() |
getBean, getBeanIfPresent, getBeanUnchecked, getUpdateStrategy, remove, updatepublic StoreCache(ITableCache.UpdateStrategy updateStrategy, long maximumSize, long duration, java.util.concurrent.TimeUnit unit)
BaseTableLoadCaching#BaseTableLoadCaching(UpdateStrategy ,long , long , TimeUnit )public StoreCache(long maximumSize,
long duration,
java.util.concurrent.TimeUnit unit)
public StoreCache(long maximumSize,
long durationMinutes)
public StoreCache(long maximumSize)
public StoreCache()
public void registerListener()
public void unregisterListener()
protected java.lang.String returnKey(StoreBean bean)
returnKey 在类中 BaseTableLoadCaching<java.lang.String,StoreBean>protected StoreBean loadfromDatabase(java.lang.String key) throws java.lang.Exception
loadfromDatabase 在类中 BaseTableLoadCaching<java.lang.String,StoreBean>java.lang.Exceptionpublic StoreBean getBeanByMd5(java.lang.String md5) throws java.util.concurrent.ExecutionException
java.util.concurrent.ExecutionExceptionpublic StoreBean getBeanByMd5Unchecked(java.lang.String md5)
Copyright © 2019. All Rights Reserved.