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