public class EntryCacheManager extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
EntryCacheManager.EntryCacheDisabled |
| Modifier and Type | Field and Description |
|---|---|
protected static double |
MB |
protected ManagedLedgerFactoryMBeanImpl |
mlFactoryMBean |
| Constructor and Description |
|---|
EntryCacheManager(ManagedLedgerFactoryImpl factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
static EntryImpl |
create(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry,
ManagedLedgerInterceptor interceptor) |
static Entry |
create(long ledgerId,
long entryId,
io.netty.buffer.ByteBuf data) |
double |
getCacheEvictionWatermark() |
EntryCache |
getEntryCache(ManagedLedgerImpl ml) |
long |
getMaxSize() |
long |
getSize() |
void |
updateCacheEvictionWatermark(double cacheEvictionWatermark) |
void |
updateCacheSizeAndThreshold(long maxSize) |
protected final ManagedLedgerFactoryMBeanImpl mlFactoryMBean
protected static final double MB
public EntryCacheManager(ManagedLedgerFactoryImpl factory)
public EntryCache getEntryCache(ManagedLedgerImpl ml)
public void updateCacheSizeAndThreshold(long maxSize)
public void updateCacheEvictionWatermark(double cacheEvictionWatermark)
public long getSize()
public long getMaxSize()
public double getCacheEvictionWatermark()
public void clear()
public static Entry create(long ledgerId, long entryId, io.netty.buffer.ByteBuf data)
public static EntryImpl create(org.apache.bookkeeper.client.api.LedgerEntry ledgerEntry, ManagedLedgerInterceptor interceptor)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.