public class PersistentTopicsBase extends AdminResource
namespaceName, topicNamehttpRequest, 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,
Map<String,String> properties) |
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,
boolean isGlobal) |
protected void |
internalGetBacklogSizeByMessageId(javax.ws.rs.container.AsyncResponse asyncResponse,
MessageIdImpl messageId,
boolean authoritative) |
protected CompletableFuture<Long> |
internalGetCompactionThreshold(boolean applied,
boolean isGlobal) |
protected CompletableFuture<Boolean> |
internalGetDeduplication(boolean applied,
boolean isGlobal) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies> |
internalGetDelayedDeliveryPolicies(boolean applied,
boolean isGlobal) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.impl.DispatchRateImpl> |
internalGetDispatchRate(boolean applied,
boolean isGlobal) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.InactiveTopicPolicies> |
internalGetInactiveTopicPolicies(boolean applied,
boolean isGlobal) |
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(Optional<String> bundle) |
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,
boolean isGlobal) |
protected CompletableFuture<Optional<Integer>> |
internalGetMaxConsumersPerSubscription(boolean isGlobal) |
protected CompletableFuture<Optional<Integer>> |
internalGetMaxMessageSize(boolean isGlobal) |
protected CompletableFuture<Integer> |
internalGetMaxProducers(boolean applied,
boolean isGlobal) |
protected CompletableFuture<Optional<Integer>> |
internalGetMaxSubscriptionsPerTopic(boolean isGlobal) |
protected CompletableFuture<Integer> |
internalGetMaxUnackedMessagesOnConsumer(boolean applied,
boolean isGlobal) |
protected CompletableFuture<Integer> |
internalGetMaxUnackedMessagesOnSubscription(boolean applied,
boolean isGlobal) |
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,
boolean isGlobal) |
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,
boolean getEarliestTimeInBacklog) |
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,
boolean isGlobal) |
protected CompletableFuture<Optional<org.apache.pulsar.common.policies.data.PublishRate>> |
internalGetPublishRate(boolean isGlobal) |
protected void |
internalGetReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.impl.DispatchRateImpl> |
internalGetReplicatorDispatchRate(boolean applied,
boolean isGlobal) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.RetentionPolicies> |
internalGetRetention(boolean applied,
boolean isGlobal) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy> |
internalGetSchemaCompatibilityStrategy(boolean applied) |
protected org.apache.pulsar.common.policies.data.TopicStats |
internalGetStats(boolean authoritative,
boolean getPreciseBacklog,
boolean subscriptionBacklogSize,
boolean getEarliestTimeInBacklog) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.SubscribeRate> |
internalGetSubscribeRate(boolean applied,
boolean isGlobal) |
protected CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> |
internalGetSubscriptionDispatchRate(boolean applied,
boolean isGlobal) |
protected void |
internalGetSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected CompletableFuture<Optional<List<org.apache.pulsar.common.api.proto.CommandSubscribe.SubType>>> |
internalGetSubscriptionTypesEnabled(boolean isGlobal) |
protected void |
internalGrantPermissionsOnTopic(String role,
Set<org.apache.pulsar.common.policies.data.AuthAction> actions) |
protected void |
internalOffloadStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected javax.ws.rs.core.Response |
internalPeekNthMessage(String subName,
int messagePosition,
boolean authoritative) |
protected CompletableFuture<Void> |
internalRemoveCompactionThreshold(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveDispatchRate(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveMaxConsumers(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveMaxConsumersPerSubscription(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveMaxProducers(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemovePersistence(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemovePublishRate(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveReplicationClusters() |
protected CompletableFuture<Void> |
internalRemoveRetention(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveSubscribeRate(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveSubscriptionDispatchRate(boolean isGlobal) |
protected CompletableFuture<Void> |
internalRemoveSubscriptionTypesEnabled(boolean isGlobal) |
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,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetCompactionThreshold(Long compactionThreshold,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetDeduplication(Boolean enabled,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetDeduplicationSnapshotInterval(Integer interval,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetDelayedDeliveryPolicies(org.apache.pulsar.common.policies.data.DelayedDeliveryPolicies deliveryPolicies,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetInactiveTopicPolicies(org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMaxConsumers(Integer maxConsumers,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMaxConsumersPerSubscription(Integer maxConsumersPerSubscription,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMaxMessageSize(Integer maxMessageSize,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMaxProducers(Integer maxProducers,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMaxSubscriptionsPerTopic(Integer maxSubscriptionsPerTopic,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMaxUnackedMessagesOnConsumer(Integer maxUnackedNum,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMaxUnackedMessagesOnSubscription(Integer maxUnackedNum,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetMessageTTL(Integer ttlInSecond,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetOffloadPolicies(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetPersistence(org.apache.pulsar.common.policies.data.PersistencePolicies persistencePolicies,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetPublishRate(org.apache.pulsar.common.policies.data.PublishRate publishRate,
boolean isGlobal) |
protected void |
internalSetReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative,
boolean enabled) |
protected CompletableFuture<Void> |
internalSetReplicationClusters(List<String> clusterIds) |
protected CompletableFuture<Void> |
internalSetReplicatorDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetRetention(org.apache.pulsar.common.policies.data.RetentionPolicies retention,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetSchemaCompatibilityStrategy(org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy) |
protected CompletableFuture<Void> |
internalSetSubscribeRate(org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetSubscriptionDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate,
boolean isGlobal) |
protected CompletableFuture<Void> |
internalSetSubscriptionTypesEnabled(Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled,
boolean isGlobal) |
protected void |
internalSkipAllMessages(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative) |
protected void |
internalSkipMessages(javax.ws.rs.container.AsyncResponse asyncResponse,
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(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
protected void |
internalTriggerOffload(javax.ws.rs.container.AsyncResponse asyncResponse,
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.
|
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, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNamebookieResources, canUpdateCluster, checkAuthorization, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateBrokerName, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsyncprotected Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>> internalGetPermissionsOnTopic()
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,
Map<String,String> properties)
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, boolean isGlobal)
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, boolean isGlobal)
protected CompletableFuture<org.apache.pulsar.common.policies.data.OffloadPoliciesImpl> internalGetOffloadPolicies(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetOffloadPolicies(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies, boolean isGlobal)
protected CompletableFuture<org.apache.pulsar.common.policies.data.InactiveTopicPolicies> internalGetInactiveTopicPolicies(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetInactiveTopicPolicies(org.apache.pulsar.common.policies.data.InactiveTopicPolicies inactiveTopicPolicies, boolean isGlobal)
protected CompletableFuture<Integer> internalGetMaxUnackedMessagesOnSubscription(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetMaxUnackedMessagesOnSubscription(Integer maxUnackedNum, boolean isGlobal)
protected CompletableFuture<Integer> internalGetMaxUnackedMessagesOnConsumer(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetMaxUnackedMessagesOnConsumer(Integer maxUnackedNum, boolean isGlobal)
protected CompletableFuture<Void> internalSetDeduplicationSnapshotInterval(Integer interval, boolean isGlobal)
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,
boolean getEarliestTimeInBacklog)
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,
boolean getEarliestTimeInBacklog)
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(javax.ws.rs.container.AsyncResponse asyncResponse,
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, boolean isGlobal)
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, boolean isGlobal)
protected CompletableFuture<Void> internalSetReplicationClusters(List<String> clusterIds)
protected CompletableFuture<Void> internalRemoveReplicationClusters()
protected CompletableFuture<Boolean> internalGetDeduplication(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetDeduplication(Boolean enabled, boolean isGlobal)
protected CompletableFuture<Void> internalSetMessageTTL(Integer ttlInSecond, boolean isGlobal)
protected CompletableFuture<org.apache.pulsar.common.policies.data.RetentionPolicies> internalGetRetention(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetRetention(org.apache.pulsar.common.policies.data.RetentionPolicies retention, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveRetention(boolean isGlobal)
protected CompletableFuture<org.apache.pulsar.common.policies.data.PersistencePolicies> internalGetPersistence(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetPersistence(org.apache.pulsar.common.policies.data.PersistencePolicies persistencePolicies, boolean isGlobal)
protected CompletableFuture<Void> internalRemovePersistence(boolean isGlobal)
protected CompletableFuture<Void> internalSetMaxMessageSize(Integer maxMessageSize, boolean isGlobal)
protected CompletableFuture<Optional<Integer>> internalGetMaxMessageSize(boolean isGlobal)
protected CompletableFuture<Integer> internalGetMaxProducers(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetMaxProducers(Integer maxProducers, boolean isGlobal)
protected CompletableFuture<Optional<Integer>> internalGetMaxSubscriptionsPerTopic(boolean isGlobal)
protected CompletableFuture<Void> internalSetMaxSubscriptionsPerTopic(Integer maxSubscriptionsPerTopic, boolean isGlobal)
protected CompletableFuture<org.apache.pulsar.common.policies.data.impl.DispatchRateImpl> internalGetReplicatorDispatchRate(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetReplicatorDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate, boolean isGlobal)
protected CompletableFuture<Void> preValidation(boolean authoritative)
protected CompletableFuture<Void> internalRemoveMaxProducers(boolean isGlobal)
protected CompletableFuture<Integer> internalGetMaxConsumers(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetMaxConsumers(Integer maxConsumers, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveMaxConsumers(boolean isGlobal)
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(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative)
protected LongRunningProcessStatus internalCompactionStatus(boolean authoritative)
protected void internalTriggerOffload(javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative,
MessageIdImpl messageId)
protected void internalOffloadStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
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, boolean isGlobal)
protected CompletableFuture<Void> internalSetDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveDispatchRate(boolean isGlobal)
protected CompletableFuture<org.apache.pulsar.common.policies.data.DispatchRate> internalGetSubscriptionDispatchRate(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetSubscriptionDispatchRate(org.apache.pulsar.common.policies.data.impl.DispatchRateImpl dispatchRate, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveSubscriptionDispatchRate(boolean isGlobal)
protected CompletableFuture<Optional<Integer>> internalGetMaxConsumersPerSubscription(boolean isGlobal)
protected CompletableFuture<Void> internalSetMaxConsumersPerSubscription(Integer maxConsumersPerSubscription, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveMaxConsumersPerSubscription(boolean isGlobal)
protected CompletableFuture<Long> internalGetCompactionThreshold(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetCompactionThreshold(Long compactionThreshold, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveCompactionThreshold(boolean isGlobal)
protected CompletableFuture<Optional<org.apache.pulsar.common.policies.data.PublishRate>> internalGetPublishRate(boolean isGlobal)
protected CompletableFuture<Void> internalSetPublishRate(org.apache.pulsar.common.policies.data.PublishRate publishRate, boolean isGlobal)
protected CompletableFuture<Optional<List<org.apache.pulsar.common.api.proto.CommandSubscribe.SubType>>> internalGetSubscriptionTypesEnabled(boolean isGlobal)
protected CompletableFuture<Void> internalSetSubscriptionTypesEnabled(Set<org.apache.pulsar.client.api.SubscriptionType> subscriptionTypesEnabled, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveSubscriptionTypesEnabled(boolean isGlobal)
protected CompletableFuture<Void> internalRemovePublishRate(boolean isGlobal)
protected CompletableFuture<org.apache.pulsar.common.policies.data.SubscribeRate> internalGetSubscribeRate(boolean applied, boolean isGlobal)
protected CompletableFuture<Void> internalSetSubscribeRate(org.apache.pulsar.common.policies.data.SubscribeRate subscribeRate, boolean isGlobal)
protected CompletableFuture<Void> internalRemoveSubscribeRate(boolean isGlobal)
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)
protected void internalGetReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
String subName,
boolean authoritative)
protected CompletableFuture<org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy> internalGetSchemaCompatibilityStrategy(boolean applied)
protected CompletableFuture<Void> internalSetSchemaCompatibilityStrategy(org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy strategy)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.