Package org.apache.pulsar.common.naming
Class TopicCountEquallyDivideBundleSplitAlgorithm
- java.lang.Object
-
- org.apache.pulsar.common.naming.TopicCountEquallyDivideBundleSplitAlgorithm
-
- All Implemented Interfaces:
NamespaceBundleSplitAlgorithm
public class TopicCountEquallyDivideBundleSplitAlgorithm extends java.lang.Object implements NamespaceBundleSplitAlgorithm
This algorithm divides the bundle into two parts with the same topics count.
-
-
Field Summary
-
Fields inherited from interface org.apache.pulsar.common.naming.NamespaceBundleSplitAlgorithm
AVAILABLE_ALGORITHMS, RANGE_EQUALLY_DIVIDE_ALGO, RANGE_EQUALLY_DIVIDE_NAME, TOPIC_COUNT_EQUALLY_DIVIDE, TOPIC_COUNT_EQUALLY_DIVIDE_ALGO
-
-
Constructor Summary
Constructors Constructor Description TopicCountEquallyDivideBundleSplitAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Long>getSplitBoundary(NamespaceService service, NamespaceBundle bundle)
-
-
-
Method Detail
-
getSplitBoundary
public java.util.concurrent.CompletableFuture<java.lang.Long> getSplitBoundary(NamespaceService service, NamespaceBundle bundle)
- Specified by:
getSplitBoundaryin interfaceNamespaceBundleSplitAlgorithm
-
-