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