public class PersistentTopicsBase extends AdminResource
namespaceName, topicNamehttpRequest, NOT_IMPLEMENTED, servletContext, uri| Constructor and Description |
|---|
PersistentTopicsBase() |
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> |
getPartitionedTopicMetadata(PulsarService pulsar,
String clientAppId,
String originalPrincipal,
AuthenticationDataSource authenticationData,
org.apache.pulsar.common.naming.TopicName topicName) |
protected void |
handleTopicPolicyException(String methodName,
Throwable thr,
javax.ws.rs.container.AsyncResponse asyncResponse) |
protected LongRunningProcessStatus |
internalCompactionStatus(boolean authoritative) |
protected void |
internalCreateMissedPartitions(javax.ws.rs.container.AsyncResponse asyncResponse) |
protected void |
internalCreateNonPartitionedTopic(boolean authoritative) |
protected void |
internalCreateSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String subscriptionName,
MessageIdImpl messageId,
boolean authoritative,
boolean replicated) |
protected void |
internalDeletePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative,
boolean force,
boolean deleteSchema) |
protected void |
internalDeleteSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative) |
protected void |
internalDeleteSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
boolean force) |
protected void |
internalDeleteSubscriptionForcefully(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative) |
protected void |
internalDeleteTopic(boolean authoritative,
boolean deleteSchema) |
protected void |
internalDeleteTopic(boolean authoritative,
boolean force,
boolean deleteSchema) |
protected void |
internalDeleteTopicForcefully(boolean authoritative,
boolean deleteSchema) |
protected javax.ws.rs.core.Response |
internalExamineMessage(String initialPosition,
long messagePosition,
boolean authoritative) |
protected void |
internalExpireMessagesByPosition(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
MessageIdImpl messageId,
boolean isExcluded,
int batchIndex) |
protected void |
internalExpireMessagesByTimestamp(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
int expireTimeInSeconds,
boolean authoritative) |
protected void |
internalExpireMessagesForAllSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse,
int expireTimeInSeconds,
boolean authoritative) |
protected org.apache.pulsar.common.policies.data.PersistentOfflineTopicStats |
internalGetBacklog(boolean authoritative) |
protected CompletableFuture<Map<org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType,org.apache.pulsar.common.policies.data.BacklogQuota>> |
internalGetBacklogQuota(boolean applied) |
protected void |
internalGetBacklogSizeByMessageId(javax.ws.rs.container.AsyncResponse asyncResponse,
MessageIdImpl messageId,
boolean authoritative) |
protected CompletableFuture<Long> |
internalGetCompactionThreshold(boolean applied) |
protected CompletableFuture<Boolean> |
internalGetDeduplication(boolean applied) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies> |
internalGetDelayedDeliveryPolicies(boolean applied) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.impl.DispatchRateImpl> |
internalGetDispatchRate(boolean applied) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.InactiveTopicPolicies> |
internalGetInactiveTopicPolicies(boolean applied) |
protected org.apache.pulsar.common.policies.data.PersistentTopicInternalStats |
internalGetInternalStats(boolean authoritative,
boolean metadata) |
protected void |
internalGetLastMessageId(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected List<String> |
internalGetList() |
protected void |
internalGetManagedLedgerInfo(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected void |
internalGetManagedLedgerInfoForNonPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse) |
protected CompletableFuture<Integer> |
internalGetMaxConsumers(boolean applied) |
protected CompletableFuture<Optional<Integer>> |
internalGetMaxConsumersPerSubscription() |
protected CompletableFuture<Optional<Integer>> |
internalGetMaxMessageSize() |
protected CompletableFuture<Integer> |
internalGetMaxProducers(boolean applied) |
protected CompletableFuture<Optional<Integer>> |
internalGetMaxSubscriptionsPerTopic() |
protected CompletableFuture<Integer> |
internalGetMaxUnackedMessagesOnConsumer(boolean applied) |
protected CompletableFuture<Integer> |
internalGetMaxUnackedMessagesOnSubscription(boolean applied) |
protected void |
internalGetMessageById(javax.ws.rs.container.AsyncResponse asyncResponse,
long ledgerId,
long entryId,
boolean authoritative) |
protected CompletableFuture<org.apache.pulsar.client.api.MessageId> |
internalGetMessageIdByTimestamp(long timestamp,
boolean authoritative) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.OffloadPoliciesImpl> |
internalGetOffloadPolicies(boolean applied) |
protected org.apache.pulsar.common.partition.PartitionedTopicMetadata |
internalGetPartitionedMetadata(boolean authoritative,
boolean checkAllowAutoCreation) |
protected void |
internalGetPartitionedStats(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative,
boolean perPartition,
boolean getPreciseBacklog,
boolean subscriptionBacklogSize) |
protected void |
internalGetPartitionedStatsInternal(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected List<String> |
internalGetPartitionedTopicList() |
protected Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>> |
internalGetPermissionsOnTopic() |
protected CompletableFuture<org.apache.pulsar.common.policies.data.PersistencePolicies> |
internalGetPersistence(boolean applied) |
protected CompletableFuture<Optional<org.apache.pulsar.common.policies.data.PublishRate>> |
internalGetPublishRate() |
protected CompletableFuture<org.apache.pulsar.common.policies.data.impl.DispatchRateImpl> |
internalGetReplicatorDispatchRate(boolean applied) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.RetentionPolicies> |
internalGetRetention(boolean applied) |
protected org.apache.pulsar.common.policies.data.TopicStats |
internalGetStats(boolean authoritative,
boolean getPreciseBacklog,
boolean subscriptionBacklogSize) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.SubscribeRate> |
internalGetSubscribeRate(boolean applied) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> |
internalGetSubscriptionDispatchRate(boolean applied) |
protected void |
internalGetSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected CompletableFuture<Optional<List<org.apache.pulsar.common.api.proto.CommandSubscribe.SubType>>> |
internalGetSubscriptionTypesEnabled() |
protected void |
internalGrantPermissionsOnTopic(String role,
Set<org.apache.pulsar.common.policies.data.AuthAction> actions) |
protected void |
internalHandleResult(javax.ws.rs.container.AsyncResponse asyncResponse,
Object res,
Throwable ex,
String errorMsg) |
protected OffloadProcessStatus |
internalOffloadStatus(boolean authoritative) |
protected javax.ws.rs.core.Response |
internalPeekNthMessage(String subName,
int messagePosition,
boolean authoritative) |
protected CompletableFuture<Void> |
internalRemoveCompactionThreshold() |
protected CompletableFuture<Void> |
internalRemoveDispatchRate() |
protected CompletableFuture<Void> |
internalRemoveMaxConsumers() |
protected CompletableFuture<Void> |
internalRemoveMaxConsumersPerSubscription() |
protected CompletableFuture<Void> |
internalRemoveMaxProducers() |
protected CompletableFuture<Void> |
internalRemovePersistence() |
protected CompletableFuture<Void> |
internalRemovePublishRate() |
protected CompletableFuture<Void> |
internalRemoveRetention() |
protected CompletableFuture<Void> |
internalRemoveSubscribeRate() |
protected CompletableFuture<Void> |
internalRemoveSubscriptionDispatchRate() |
protected void |
internalResetCursor(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
long timestamp,
boolean authoritative) |
protected void |
internalResetCursorOnPosition(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
MessageIdImpl messageId,
boolean isExcluded,
int batchIndex) |
protected void |
internalRevokePermissionsOnTopic(String role) |
protected CompletableFuture<Void> |
internalSetBacklogQuota(org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType backlogQuotaType,
org.apache.pulsar.common.policies.data.impl.BacklogQuotaImpl backlogQuota) |
protected CompletableFuture<Void> |
internalSetCompactionThreshold(Long compactionThreshold) |
protected CompletableFuture<Void> |
internalSetDeduplication(Boolean enabled) |
protected CompletableFuture<Void> |
internalSetDeduplicationSnapshotInterval(Integer interval) |
protected CompletableFuture<Void> |
internalSetDelayedDeliveryPolicies(org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies deliveryPolicies) |
protected CompletableFuture<Void> |
internalSetDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate) |
protected CompletableFuture<Void> |
internalSetInactiveTopicPolicies(org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies) |
protected CompletableFuture<Void> |
internalSetMaxConsumers(Integer maxConsumers) |
protected CompletableFuture<Void> |
internalSetMaxConsumersPerSubscription(Integer maxConsumersPerSubscription) |
protected CompletableFuture<Void> |
internalSetMaxMessageSize(Integer maxMessageSize) |
protected CompletableFuture<Void> |
internalSetMaxProducers(Integer maxProducers) |
protected CompletableFuture<Void> |
internalSetMaxSubscriptionsPerTopic(Integer maxSubscriptionsPerTopic) |
protected CompletableFuture<Void> |
internalSetMaxUnackedMessagesOnConsumer(Integer maxUnackedNum) |
protected CompletableFuture<Void> |
internalSetMaxUnackedMessagesOnSubscription(Integer maxUnackedNum) |
protected CompletableFuture<Void> |
internalSetMessageTTL(Integer ttlInSecond) |
protected CompletableFuture<Void> |
internalSetOffloadPolicies(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies) |
protected CompletableFuture<Void> |
internalSetPersistence(org.apache.pulsar.common.policies.data.PersistencePolicies persistencePolicies) |
protected CompletableFuture<Void> |
internalSetPublishRate(org.apache.pulsar.common.policies.data.PublishRate publishRate) |
protected void |
internalSetReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
boolean enabled) |
protected CompletableFuture<Void> |
internalSetReplicatorDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate) |
protected CompletableFuture<Void> |
internalSetRetention(org.apache.pulsar.common.policies.data.RetentionPolicies retention) |
protected CompletableFuture<Void> |
internalSetSubscribeRate(org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate) |
protected CompletableFuture<Void> |
internalSetSubscriptionDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate) |
protected CompletableFuture<Void> |
internalSetSubscriptionTypesEnabled(Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled) |
protected void |
internalSkipAllMessages(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative) |
protected void |
internalSkipMessages(String subName,
int numMessages,
boolean authoritative) |
protected org.apache.pulsar.client.api.MessageId |
internalTerminate(boolean authoritative) |
protected void |
internalTerminatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected void |
internalTriggerCompaction(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected void |
internalTriggerCompactionNonPartitionedTopic(boolean authoritative) |
protected void |
internalTriggerOffload(boolean authoritative,
MessageIdImpl messageId) |
protected void |
internalTruncateNonPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected void |
internalTruncateTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected void |
internalUnloadTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected void |
internalUpdatePartitionedTopic(int numPartitions,
boolean updateLocalTopicOnly,
boolean authoritative,
boolean force)
It updates number of partitions of an existing partitioned topic.
|
protected CompletableFuture<Void> |
preValidation(boolean authoritative) |
static CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> |
unsafeGetPartitionedTopicMetadataAsync(PulsarService pulsar,
org.apache.pulsar.common.naming.TopicName topicName)
Get partitioned topic metadata without checking the permission.
|
protected void |
validateAdminAndClientPermission() |
void |
validateAdminOperationOnTopic(boolean authoritative) |
protected void |
validateCreateTopic(org.apache.pulsar.common.naming.TopicName topicName) |
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getSchemaCompatibilityStrategyAsync, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, jsonMapper, mergeNamespaceWithDefaults, namespaceBacklogQuota, replicatorDispatchRate, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validateSuperUserAccess, validateTopicName, validateTopicNamebookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, handleCommonRestAsyncException, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, setPulsar, splitPath, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateTenantOperation, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperationprotected Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>> internalGetPermissionsOnTopic()
protected void validateAdminAndClientPermission()
protected void validateCreateTopic(org.apache.pulsar.common.naming.TopicName topicName)
public void validateAdminOperationOnTopic(boolean authoritative)
protected void internalGrantPermissionsOnTopic(String role, Set<org.apache.pulsar.common.policies.data.AuthAction> actions)
protected void internalDeleteTopicForcefully(boolean authoritative,
boolean deleteSchema)
protected void internalRevokePermissionsOnTopic(String role)
protected void internalCreateNonPartitionedTopic(boolean authoritative)
protected void internalUpdatePartitionedTopic(int numPartitions,
boolean updateLocalTopicOnly,
boolean authoritative,
boolean force)
numPartitions - protected void internalCreateMissedPartitions(javax.ws.rs.container.AsyncResponse asyncResponse)
protected CompletableFuture<Void> internalSetDelayedDeliveryPolicies(org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies deliveryPolicies)
protected org.apache.pulsar.common.partition.PartitionedTopicMetadata internalGetPartitionedMetadata(boolean authoritative,
boolean checkAllowAutoCreation)
protected void internalDeletePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative,
boolean force,
boolean deleteSchema)
protected void internalUnloadTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected CompletableFuture<org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies> internalGetDelayedDeliveryPolicies(boolean applied)
protected CompletableFuture<org.apache.pulsar.common.policies.data.OffloadPoliciesImpl> internalGetOffloadPolicies(boolean applied)
protected CompletableFuture<Void> internalSetOffloadPolicies(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies)
protected CompletableFuture<org.apache.pulsar.common.policies.data.InactiveTopicPolicies> internalGetInactiveTopicPolicies(boolean applied)
protected CompletableFuture<Void> internalSetInactiveTopicPolicies(org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies)
protected CompletableFuture<Integer> internalGetMaxUnackedMessagesOnSubscription(boolean applied)
protected CompletableFuture<Void> internalSetMaxUnackedMessagesOnSubscription(Integer maxUnackedNum)
protected CompletableFuture<Integer> internalGetMaxUnackedMessagesOnConsumer(boolean applied)
protected CompletableFuture<Void> internalSetMaxUnackedMessagesOnConsumer(Integer maxUnackedNum)
protected CompletableFuture<Void> internalSetDeduplicationSnapshotInterval(Integer interval)
protected void internalDeleteTopic(boolean authoritative,
boolean force,
boolean deleteSchema)
protected void internalDeleteTopic(boolean authoritative,
boolean deleteSchema)
protected void internalGetSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected org.apache.pulsar.common.policies.data.TopicStats internalGetStats(boolean authoritative,
boolean getPreciseBacklog,
boolean subscriptionBacklogSize)
protected org.apache.pulsar.common.policies.data.PersistentTopicInternalStats internalGetInternalStats(boolean authoritative,
boolean metadata)
protected void internalGetManagedLedgerInfo(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected void internalGetManagedLedgerInfoForNonPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse)
protected void internalGetPartitionedStats(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative,
boolean perPartition,
boolean getPreciseBacklog,
boolean subscriptionBacklogSize)
protected void internalGetPartitionedStatsInternal(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected void internalDeleteSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
boolean force)
protected void internalDeleteSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative)
protected void internalDeleteSubscriptionForcefully(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative)
protected void internalSkipAllMessages(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative)
protected void internalSkipMessages(String subName, int numMessages, boolean authoritative)
protected void internalExpireMessagesForAllSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse,
int expireTimeInSeconds,
boolean authoritative)
protected void internalResetCursor(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
long timestamp,
boolean authoritative)
protected void internalCreateSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String subscriptionName,
MessageIdImpl messageId,
boolean authoritative,
boolean replicated)
protected void internalResetCursorOnPosition(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
MessageIdImpl messageId,
boolean isExcluded,
int batchIndex)
protected void internalGetMessageById(javax.ws.rs.container.AsyncResponse asyncResponse,
long ledgerId,
long entryId,
boolean authoritative)
protected CompletableFuture<org.apache.pulsar.client.api.MessageId> internalGetMessageIdByTimestamp(long timestamp, boolean authoritative)
protected javax.ws.rs.core.Response internalPeekNthMessage(String subName, int messagePosition, boolean authoritative)
protected javax.ws.rs.core.Response internalExamineMessage(String initialPosition, long messagePosition, boolean authoritative)
protected org.apache.pulsar.common.policies.data.PersistentOfflineTopicStats internalGetBacklog(boolean authoritative)
protected CompletableFuture<Map<org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType,org.apache.pulsar.common.policies.data.BacklogQuota>> internalGetBacklogQuota(boolean applied)
protected void internalGetBacklogSizeByMessageId(javax.ws.rs.container.AsyncResponse asyncResponse,
MessageIdImpl messageId,
boolean authoritative)
protected CompletableFuture<Void> internalSetBacklogQuota(org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType backlogQuotaType, org.apache.pulsar.common.policies.data.impl.BacklogQuotaImpl backlogQuota)
protected CompletableFuture<Boolean> internalGetDeduplication(boolean applied)
protected CompletableFuture<Void> internalSetDeduplication(Boolean enabled)
protected CompletableFuture<Void> internalSetMessageTTL(Integer ttlInSecond)
protected CompletableFuture<org.apache.pulsar.common.policies.data.RetentionPolicies> internalGetRetention(boolean applied)
protected CompletableFuture<Void> internalSetRetention(org.apache.pulsar.common.policies.data.RetentionPolicies retention)
protected CompletableFuture<Void> internalRemoveRetention()
protected CompletableFuture<org.apache.pulsar.common.policies.data.PersistencePolicies> internalGetPersistence(boolean applied)
protected CompletableFuture<Void> internalSetPersistence(org.apache.pulsar.common.policies.data.PersistencePolicies persistencePolicies)
protected CompletableFuture<Void> internalRemovePersistence()
protected CompletableFuture<Void> internalSetMaxMessageSize(Integer maxMessageSize)
protected CompletableFuture<Optional<Integer>> internalGetMaxMessageSize()
protected CompletableFuture<Integer> internalGetMaxProducers(boolean applied)
protected CompletableFuture<Void> internalSetMaxProducers(Integer maxProducers)
protected CompletableFuture<Optional<Integer>> internalGetMaxSubscriptionsPerTopic()
protected CompletableFuture<Void> internalSetMaxSubscriptionsPerTopic(Integer maxSubscriptionsPerTopic)
protected CompletableFuture<org.apache.pulsar.common.policies.data.impl.DispatchRateImpl> internalGetReplicatorDispatchRate(boolean applied)
protected CompletableFuture<Void> internalSetReplicatorDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate)
protected CompletableFuture<Void> preValidation(boolean authoritative)
protected CompletableFuture<Void> internalRemoveMaxProducers()
protected CompletableFuture<Integer> internalGetMaxConsumers(boolean applied)
protected CompletableFuture<Void> internalSetMaxConsumers(Integer maxConsumers)
protected CompletableFuture<Void> internalRemoveMaxConsumers()
protected org.apache.pulsar.client.api.MessageId internalTerminate(boolean authoritative)
protected void internalTerminatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected void internalExpireMessagesByTimestamp(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
int expireTimeInSeconds,
boolean authoritative)
protected void internalExpireMessagesByPosition(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
MessageIdImpl messageId,
boolean isExcluded,
int batchIndex)
protected void internalTriggerCompaction(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected void internalTriggerCompactionNonPartitionedTopic(boolean authoritative)
protected LongRunningProcessStatus internalCompactionStatus(boolean authoritative)
protected void internalTriggerOffload(boolean authoritative,
MessageIdImpl messageId)
protected OffloadProcessStatus internalOffloadStatus(boolean authoritative)
public static CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> getPartitionedTopicMetadata(PulsarService pulsar, String clientAppId, String originalPrincipal, AuthenticationDataSource authenticationData, org.apache.pulsar.common.naming.TopicName topicName)
public static CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> unsafeGetPartitionedTopicMetadataAsync(PulsarService pulsar, org.apache.pulsar.common.naming.TopicName topicName)
protected void internalGetLastMessageId(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected CompletableFuture<org.apache.pulsar.common.policies.data.impl.DispatchRateImpl> internalGetDispatchRate(boolean applied)
protected CompletableFuture<Void> internalSetDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate)
protected CompletableFuture<Void> internalRemoveDispatchRate()
protected CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> internalGetSubscriptionDispatchRate(boolean applied)
protected CompletableFuture<Void> internalSetSubscriptionDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate)
protected CompletableFuture<Void> internalRemoveSubscriptionDispatchRate()
protected CompletableFuture<Optional<Integer>> internalGetMaxConsumersPerSubscription()
protected CompletableFuture<Void> internalSetMaxConsumersPerSubscription(Integer maxConsumersPerSubscription)
protected CompletableFuture<Void> internalRemoveMaxConsumersPerSubscription()
protected CompletableFuture<Long> internalGetCompactionThreshold(boolean applied)
protected CompletableFuture<Void> internalSetCompactionThreshold(Long compactionThreshold)
protected CompletableFuture<Void> internalRemoveCompactionThreshold()
protected CompletableFuture<Optional<org.apache.pulsar.common.policies.data.PublishRate>> internalGetPublishRate()
protected CompletableFuture<Void> internalSetPublishRate(org.apache.pulsar.common.policies.data.PublishRate publishRate)
protected CompletableFuture<Optional<List<org.apache.pulsar.common.api.proto.CommandSubscribe.SubType>>> internalGetSubscriptionTypesEnabled()
protected CompletableFuture<Void> internalSetSubscriptionTypesEnabled(Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled)
protected CompletableFuture<Void> internalRemovePublishRate()
protected CompletableFuture<org.apache.pulsar.common.policies.data.SubscribeRate> internalGetSubscribeRate(boolean applied)
protected CompletableFuture<Void> internalSetSubscribeRate(org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate)
protected CompletableFuture<Void> internalRemoveSubscribeRate()
protected void internalHandleResult(javax.ws.rs.container.AsyncResponse asyncResponse,
Object res,
Throwable ex,
String errorMsg)
protected void handleTopicPolicyException(String methodName, Throwable thr, javax.ws.rs.container.AsyncResponse asyncResponse)
protected void internalTruncateNonPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected void internalTruncateTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected void internalSetReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
boolean enabled)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.