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