@@ -1293,13 +1293,6 @@ protected CompletableFuture<Void> internalRemovePublishRateAsync() {
1293
1293
}));
1294
1294
}
1295
1295
1296
- protected PublishRate internalGetPublishRate () {
1297
- validateNamespacePolicyOperation (namespaceName , PolicyName .RATE , PolicyOperation .READ );
1298
-
1299
- Policies policies = getNamespacePolicies (namespaceName );
1300
- return policies .publishMaxMessageRate .get (pulsar ().getConfiguration ().getClusterName ());
1301
- }
1302
-
1303
1296
protected CompletableFuture <PublishRate > internalGetPublishRateAsync () {
1304
1297
return validateNamespacePolicyOperationAsync (namespaceName , PolicyName .RATE , PolicyOperation .READ )
1305
1298
.thenCompose (__ -> getNamespacePoliciesAsync (namespaceName ))
@@ -1365,14 +1358,6 @@ protected CompletableFuture<Void> internalDeleteTopicDispatchRateAsync() {
1365
1358
}));
1366
1359
}
1367
1360
1368
- @ SuppressWarnings ("deprecation" )
1369
- protected DispatchRate internalGetTopicDispatchRate () {
1370
- validateNamespacePolicyOperation (namespaceName , PolicyName .RATE , PolicyOperation .READ );
1371
-
1372
- Policies policies = getNamespacePolicies (namespaceName );
1373
- return policies .topicDispatchRate .get (pulsar ().getConfiguration ().getClusterName ());
1374
- }
1375
-
1376
1361
@ SuppressWarnings ("deprecation" )
1377
1362
protected CompletableFuture <DispatchRate > internalGetTopicDispatchRateAsync () {
1378
1363
return validateNamespacePolicyOperationAsync (namespaceName , PolicyName .RATE , PolicyOperation .READ )
@@ -1825,11 +1810,6 @@ protected Boolean internalGetEncryptionRequired() {
1825
1810
return policies .encryption_required ;
1826
1811
}
1827
1812
1828
- protected DelayedDeliveryPolicies internalGetDelayedDelivery () {
1829
- validateNamespacePolicyOperation (namespaceName , PolicyName .DELAYED_DELIVERY , PolicyOperation .READ );
1830
- return getNamespacePolicies (namespaceName ).delayed_delivery_policies ;
1831
- }
1832
-
1833
1813
protected void internalSetInactiveTopic (InactiveTopicPolicies inactiveTopicPolicies ) {
1834
1814
validateSuperUserAccess ();
1835
1815
validatePoliciesReadOnlyAccess ();
@@ -1957,13 +1937,6 @@ protected List<String> internalGetAntiAffinityNamespaces(String cluster, String
1957
1937
}
1958
1938
}
1959
1939
1960
- protected RetentionPolicies internalGetRetention () {
1961
- validateNamespacePolicyOperation (namespaceName , PolicyName .RETENTION , PolicyOperation .READ );
1962
-
1963
- Policies policies = getNamespacePolicies (namespaceName );
1964
- return policies .retention_policies ;
1965
- }
1966
-
1967
1940
private boolean checkQuotas (Policies policies , RetentionPolicies retention ) {
1968
1941
Map <BacklogQuota .BacklogQuotaType , BacklogQuota > backlogQuotaMap = policies .backlog_quota_map ;
1969
1942
if (backlogQuotaMap .isEmpty ()) {
@@ -2244,11 +2217,6 @@ protected void internalSetMaxConsumersPerSubscription(Integer maxConsumersPerSub
2244
2217
}
2245
2218
}
2246
2219
2247
- protected Integer internalGetMaxUnackedMessagesPerConsumer () {
2248
- validateNamespacePolicyOperation (namespaceName , PolicyName .MAX_UNACKED , PolicyOperation .READ );
2249
- return getNamespacePolicies (namespaceName ).max_unacked_messages_per_consumer ;
2250
- }
2251
-
2252
2220
protected void internalSetMaxUnackedMessagesPerConsumer (Integer maxUnackedMessagesPerConsumer ) {
2253
2221
validateNamespacePolicyOperation (namespaceName , PolicyName .MAX_UNACKED , PolicyOperation .WRITE );
2254
2222
validatePoliciesReadOnlyAccess ();
@@ -2273,16 +2241,6 @@ protected void internalSetMaxUnackedMessagesPerConsumer(Integer maxUnackedMessag
2273
2241
}
2274
2242
}
2275
2243
2276
- protected Integer internalGetMaxUnackedMessagesPerSubscription () {
2277
- validateNamespacePolicyOperation (namespaceName , PolicyName .MAX_UNACKED , PolicyOperation .READ );
2278
- return getNamespacePolicies (namespaceName ).max_unacked_messages_per_subscription ;
2279
- }
2280
-
2281
- protected Integer internalGetMaxSubscriptionsPerTopic () {
2282
- validateNamespacePolicyOperation (namespaceName , PolicyName .MAX_SUBSCRIPTIONS , PolicyOperation .READ );
2283
- return getNamespacePolicies (namespaceName ).max_subscriptions_per_topic ;
2284
- }
2285
-
2286
2244
protected void internalSetMaxSubscriptionsPerTopic (Integer maxSubscriptionsPerTopic ){
2287
2245
validateSuperUserAccess ();
2288
2246
validatePoliciesReadOnlyAccess ();
@@ -2399,14 +2357,6 @@ protected SchemaAutoUpdateCompatibilityStrategy internalGetSchemaAutoUpdateCompa
2399
2357
return getNamespacePolicies (namespaceName ).schema_auto_update_compatibility_strategy ;
2400
2358
}
2401
2359
2402
- protected SchemaCompatibilityStrategy internalGetSchemaCompatibilityStrategy () {
2403
- validateNamespacePolicyOperation (namespaceName , PolicyName .SCHEMA_COMPATIBILITY_STRATEGY ,
2404
- PolicyOperation .READ );
2405
- Policies policies = getNamespacePolicies (namespaceName );
2406
-
2407
- return policies .schema_compatibility_strategy ;
2408
- }
2409
-
2410
2360
@ Deprecated
2411
2361
protected void internalSetSchemaAutoUpdateCompatibilityStrategy (SchemaAutoUpdateCompatibilityStrategy strategy ) {
2412
2362
validateNamespacePolicyOperation (namespaceName , PolicyName .SCHEMA_COMPATIBILITY_STRATEGY ,
@@ -2615,12 +2565,6 @@ private void validateOffloadPolicies(OffloadPoliciesImpl offloadPolicies) {
2615
2565
}
2616
2566
}
2617
2567
2618
- protected int internalGetMaxTopicsPerNamespace () {
2619
- validateNamespacePolicyOperation (namespaceName , PolicyName .MAX_TOPICS , PolicyOperation .READ );
2620
- return getNamespacePolicies (namespaceName ).max_topics_per_namespace != null
2621
- ? getNamespacePolicies (namespaceName ).max_topics_per_namespace : 0 ;
2622
- }
2623
-
2624
2568
protected void internalRemoveMaxTopicsPerNamespace () {
2625
2569
validateNamespacePolicyOperation (namespaceName , PolicyName .MAX_TOPICS , PolicyOperation .WRITE );
2626
2570
internalSetMaxTopicsPerNamespace (null );
0 commit comments