Skip to content

Commit

Permalink
[improve][broker] Add annotation for topic compaction strategy (#20858)
Browse files Browse the repository at this point in the history
### Motivation

Add `Audience.Private` annotation for topic compaction strategy. Since this interface only uses for load manager, other users should not use this interface.
  • Loading branch information
Demogorgon314 authored Jul 26, 2023
1 parent b12dbe7 commit e55ed58
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.pulsar.client.api.Schema;
import org.apache.pulsar.common.classification.InterfaceAudience;
import org.apache.pulsar.common.classification.InterfaceStability;

/**
* Defines a custom strategy to compact messages in a topic.
Expand All @@ -45,6 +47,8 @@
* "topicCompactionStrategyClassName", strategy.getClass().getCanonicalName()))
* .create();
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface TopicCompactionStrategy<T> {

String TABLE_VIEW_TAG = "table-view";
Expand Down

0 comments on commit e55ed58

Please sign in to comment.