Package org.apache.pulsar.compaction
Interface CompactionServiceFactory
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
EventTimeCompactionServiceFactory,PulsarCompactionServiceFactory
-
Method Summary
Modifier and TypeMethodDescriptioninitialize(PulsarService pulsarService) Initialize the compaction service factory.newTopicCompactionService(String topic) Create a new topic compaction service for topic.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
initialize
Initialize the compaction service factory.- Parameters:
pulsarService- the pulsar service instance- Returns:
- a future represents the initialization result
-
newTopicCompactionService
Create a new topic compaction service for topic.- Parameters:
topic- the topic name- Returns:
- a future represents the topic compaction service
-