类 EntryCacheDefaultEvictionPolicy
java.lang.Object
org.apache.bookkeeper.mledger.impl.cache.EntryCacheDefaultEvictionPolicy
- 所有已实现的接口:
EntryCacheEvictionPolicy
Default eviction policy.
This policy consider only the bigger caches for doing eviction.
The PercentOfSizeToConsiderForEviction parameter should always be bigger than the cacheEvictionWatermak,
otherwisethe eviction cycle will free less memory than what was required.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddoEviction(List<EntryCache> caches, long sizeToFree) Perform the cache eviction of at least sizeToFree bytes on the supplied list of caches.
-
构造器详细资料
-
EntryCacheDefaultEvictionPolicy
public EntryCacheDefaultEvictionPolicy()
-
-
方法详细资料
-
doEviction
从接口复制的说明:EntryCacheEvictionPolicyPerform the cache eviction of at least sizeToFree bytes on the supplied list of caches.- 指定者:
doEviction在接口中EntryCacheEvictionPolicy- 参数:
caches- the list of caches to considersizeToFree- the minimum size in bytes to be freed
-