public abstract class Compactor extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPACTED_TOPIC_LEDGER_PROPERTY |
static String |
COMPACTION_SUBSCRIPTION |
protected ServiceConfiguration |
conf |
protected CompactorMXBeanImpl |
mxBean |
protected ScheduledExecutorService |
scheduler |
| Constructor and Description |
|---|
Compactor(ServiceConfiguration conf,
org.apache.pulsar.client.api.PulsarClient pulsar,
BookKeeper bk,
ScheduledExecutorService scheduler) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Long> |
compact(String topic) |
protected abstract CompletableFuture<Long> |
doCompaction(RawReader reader,
BookKeeper bk) |
CompactorMXBean |
getStats() |
public static final String COMPACTION_SUBSCRIPTION
public static final String COMPACTED_TOPIC_LEDGER_PROPERTY
protected final ServiceConfiguration conf
protected final ScheduledExecutorService scheduler
protected final CompactorMXBeanImpl mxBean
public Compactor(ServiceConfiguration conf, org.apache.pulsar.client.api.PulsarClient pulsar, BookKeeper bk, ScheduledExecutorService scheduler)
public CompletableFuture<Long> compact(String topic)
protected abstract CompletableFuture<Long> doCompaction(RawReader reader, BookKeeper bk)
public CompactorMXBean getStats()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.