Package org.apache.pulsar.common.naming
Interface NamespaceBundleSplitAlgorithm
-
- All Known Implementing Classes:
RangeEquallyDivideBundleSplitAlgorithm,TopicCountEquallyDivideBundleSplitAlgorithm
public interface NamespaceBundleSplitAlgorithmAlgorithm interface for namespace bundle split.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>AVAILABLE_ALGORITHMSstatic NamespaceBundleSplitAlgorithmRANGE_EQUALLY_DIVIDE_ALGOstatic java.lang.StringRANGE_EQUALLY_DIVIDE_NAMEstatic java.lang.StringTOPIC_COUNT_EQUALLY_DIVIDEstatic NamespaceBundleSplitAlgorithmTOPIC_COUNT_EQUALLY_DIVIDE_ALGO
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Long>getSplitBoundary(NamespaceService service, NamespaceBundle bundle)static NamespaceBundleSplitAlgorithmof(java.lang.String algorithmName)
-
-
-
Field Detail
-
RANGE_EQUALLY_DIVIDE_NAME
static final java.lang.String RANGE_EQUALLY_DIVIDE_NAME
- See Also:
- Constant Field Values
-
TOPIC_COUNT_EQUALLY_DIVIDE
static final java.lang.String TOPIC_COUNT_EQUALLY_DIVIDE
- See Also:
- Constant Field Values
-
AVAILABLE_ALGORITHMS
static final java.util.List<java.lang.String> AVAILABLE_ALGORITHMS
-
RANGE_EQUALLY_DIVIDE_ALGO
static final NamespaceBundleSplitAlgorithm RANGE_EQUALLY_DIVIDE_ALGO
-
TOPIC_COUNT_EQUALLY_DIVIDE_ALGO
static final NamespaceBundleSplitAlgorithm TOPIC_COUNT_EQUALLY_DIVIDE_ALGO
-
-
Method Detail
-
of
static NamespaceBundleSplitAlgorithm of(java.lang.String algorithmName)
-
getSplitBoundary
java.util.concurrent.CompletableFuture<java.lang.Long> getSplitBoundary(NamespaceService service, NamespaceBundle bundle)
-
-