Class RangeEntryCacheManagerImpl
java.lang.Object
org.apache.bookkeeper.mledger.impl.cache.RangeEntryCacheManagerImpl
- All Implemented Interfaces:
EntryCacheManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final doubleprotected final ManagedLedgerFactoryMBeanImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()static Entrycreate(long ledgerId, long entryId, io.netty.buffer.ByteBuf data) static EntryImplcreate(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry, ManagedLedgerInterceptor interceptor) doublelonglonggetSize()voidremoveEntryCache(String name) voidupdateCacheEvictionWatermark(double cacheEvictionWatermark) voidupdateCacheSizeAndThreshold(long maxSize)
-
Field Details
-
mlFactoryMBean
-
MB
protected static final double MB- See Also:
-
-
Constructor Details
-
RangeEntryCacheManagerImpl
-
-
Method Details
-
getEntryCache
- Specified by:
getEntryCachein interfaceEntryCacheManager
-
updateCacheSizeAndThreshold
public void updateCacheSizeAndThreshold(long maxSize) - Specified by:
updateCacheSizeAndThresholdin interfaceEntryCacheManager
-
updateCacheEvictionWatermark
public void updateCacheEvictionWatermark(double cacheEvictionWatermark) - Specified by:
updateCacheEvictionWatermarkin interfaceEntryCacheManager
-
removeEntryCache
- Specified by:
removeEntryCachein interfaceEntryCacheManager
-
getSize
public long getSize()- Specified by:
getSizein interfaceEntryCacheManager
-
getMaxSize
public long getMaxSize()- Specified by:
getMaxSizein interfaceEntryCacheManager
-
getCacheEvictionWatermark
public double getCacheEvictionWatermark()- Specified by:
getCacheEvictionWatermarkin interfaceEntryCacheManager
-
clear
public void clear()- Specified by:
clearin interfaceEntryCacheManager
-
create
-
create
public static EntryImpl create(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry, ManagedLedgerInterceptor interceptor) -
getInflightReadsLimiter
-