Interface CompactionServiceFactory

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
EventTimeCompactionServiceFactory, PulsarCompactionServiceFactory

@Public @Evolving public interface CompactionServiceFactory extends AutoCloseable
  • Method Details

    • initialize

      CompletableFuture<Void> initialize(@Nonnull PulsarService pulsarService)
      Initialize the compaction service factory.
      Parameters:
      pulsarService - the pulsar service instance
      Returns:
      a future represents the initialization result
    • newTopicCompactionService

      CompletableFuture<TopicCompactionService> newTopicCompactionService(@Nonnull String topic)
      Create a new topic compaction service for topic.
      Parameters:
      topic - the topic name
      Returns:
      a future represents the topic compaction service