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 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) |
public static final String COMPACTION_SUBSCRIPTION
public static final String COMPACTED_TOPIC_LEDGER_PROPERTY
protected final ServiceConfiguration conf
protected final ScheduledExecutorService scheduler
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)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.