Package org.apache.pulsar.compaction
Class PulsarCompactionServiceFactory
java.lang.Object
org.apache.pulsar.compaction.PulsarCompactionServiceFactory
- All Implemented Interfaces:
AutoCloseable,CompactionServiceFactory
- Direct Known Subclasses:
EventTimeCompactionServiceFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()initialize(PulsarService pulsarService) Initialize the compaction service factory.protected CompactornewTopicCompactionService(String topic) Create a new topic compaction service for topic.
-
Constructor Details
-
PulsarCompactionServiceFactory
public PulsarCompactionServiceFactory()
-
-
Method Details
-
getCompactor
- Throws:
PulsarServerException
-
getNullableCompactor
-
newCompactor
- Throws:
PulsarServerException
-
initialize
Description copied from interface:CompactionServiceFactoryInitialize the compaction service factory.- Specified by:
initializein interfaceCompactionServiceFactory- Parameters:
pulsarService- the pulsar service instance- Returns:
- a future represents the initialization result
-
newTopicCompactionService
Description copied from interface:CompactionServiceFactoryCreate a new topic compaction service for topic.- Specified by:
newTopicCompactionServicein interfaceCompactionServiceFactory- Parameters:
topic- the topic name- Returns:
- a future represents the topic compaction service
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-