Class PersistentTopics
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.impl.PersistentTopicsBase
org.apache.pulsar.broker.admin.v1.PersistentTopics
- Direct Known Subclasses:
NonPersistentTopics
@Path("/persistent")
@Produces("application/json")
public class PersistentTopics
extends PersistentTopicsBase
-
Field Summary
Fields inherited from class org.apache.pulsar.broker.admin.AdminResource
namespaceName, topicNameFields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, servletContext, uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompact(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidcompactionStatus(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidcreateNonPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String cluster, String namespace, String encodedTopic, boolean authoritative) voidcreatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, int numPartitions, boolean createLocalTopicOnly) voidcreateSubscription(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String topic, String encodedSubName, boolean authoritative, org.apache.pulsar.client.impl.MessageIdImpl messageId, boolean replicated) voiddeletePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean force, boolean authoritative) voiddeleteSubscription(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, boolean force, boolean authoritative) voiddeleteTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean force, boolean authoritative) voidexpireMessagesForAllSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, int expireTimeInSeconds, boolean authoritative) voidexpireTopicMessages(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, boolean authoritative, org.apache.pulsar.client.impl.ResetCursorData resetCursorData) voidexpireTopicMessages(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, int expireTimeInSeconds, boolean authoritative) voidgetBacklog(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidgetInternalStats(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative, boolean metadata) voidgetLastMessageId(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String cluster, String namespace, String encodedTopic, boolean authoritative) voidgetList(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String bundle) voidgetManagedLedgerInfo(String property, String cluster, String namespace, String encodedTopic, javax.ws.rs.container.AsyncResponse asyncResponse, boolean authoritative) voidgetMessageByID(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, Long ledgerId, Long entryId, boolean authoritative) voidgetPartitionedMetadata(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative, boolean checkAllowAutoCreation) voidgetPartitionedStats(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean perPartition, boolean authoritative) voidgetPartitionedStatsInternal(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidgetPartitionedTopicList(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace) voidgetPermissionsOnTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic) voidgetReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String cluster, String namespace, String encodedTopic, String encodedSubName, boolean authoritative) voidgetStats(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative, boolean getPreciseBacklog) voidgetSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidgrantPermissionsOnTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String role, Set<org.apache.pulsar.common.policies.data.AuthAction> actions) voidoffloadStatus(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String cluster, String namespace, String encodedTopic, boolean authoritative) voidpeekNthMessage(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, int messagePosition, boolean authoritative) voidresetCursor(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, long timestamp, boolean authoritative) voidresetCursorOnPosition(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, boolean authoritative, org.apache.pulsar.client.impl.ResetCursorData resetCursorData) voidrevokePermissionsOnTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String role) voidsetReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String cluster, String namespace, String encodedTopic, String encodedSubName, boolean authoritative, boolean enabled) voidskipAllMessages(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, boolean authoritative) voidskipMessages(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, String encodedSubName, int numMessages, boolean authoritative) voidterminate(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidterminatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidtriggerOffload(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String cluster, String namespace, String encodedTopic, boolean authoritative, org.apache.pulsar.client.impl.MessageIdImpl messageId) voidunloadTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean authoritative) voidupdatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String property, String cluster, String namespace, String encodedTopic, boolean updateLocalTopicOnly, boolean authoritative, boolean force, int numPartitions) It updates number of partitions of an existing non-global partitioned topic.Methods inherited from class org.apache.pulsar.broker.admin.impl.PersistentTopicsBase
getPartitionedTopicMetadata, handleTopicPolicyException, internalAnalyzeSubscriptionBacklog, internalCheckTopicExists, internalCompactionStatusAsync, internalCreateMissedPartitions, internalCreateNonPartitionedTopicAsync, internalCreateSubscription, internalDeletePartitionedTopic, internalDeleteSubscription, internalDeleteSubscription, internalDeleteSubscriptionForcefully, internalDeleteTopicAsync, internalExamineMessageAsync, internalExpireMessagesByPosition, internalExpireMessagesByTimestamp, internalExpireMessagesForAllSubscriptions, internalGetBacklogAsync, internalGetBacklogQuota, internalGetBacklogSizeByMessageId, internalGetCompactionThreshold, internalGetDeduplication, internalGetDelayedDeliveryPolicies, internalGetDispatchRate, internalGetInactiveTopicPolicies, internalGetInternalStatsAsync, internalGetLastMessageId, internalGetList, internalGetListAsync, internalGetListAsync, internalGetManagedLedgerInfo, internalGetManagedLedgerInfoForNonPartitionedTopic, internalGetMaxConsumers, internalGetMaxConsumersPerSubscription, internalGetMaxMessageSize, internalGetMaxProducers, internalGetMaxSubscriptionsPerTopic, internalGetMaxUnackedMessagesOnConsumer, internalGetMaxUnackedMessagesOnSubscription, internalGetMessageById, internalGetMessageIdByTimestampAsync, internalGetOffloadPolicies, internalGetPartitionedMetadata, internalGetPartitionedMetadataAsync, internalGetPartitionedStats, internalGetPartitionedStatsInternal, internalGetPartitionedTopicListAsync, internalGetPermissionsOnTopic, internalGetPersistence, internalGetPropertiesAsync, internalGetPublishRate, internalGetReplicatedSubscriptionStatus, internalGetReplicatorDispatchRate, internalGetRetention, internalGetSchemaCompatibilityStrategy, internalGetSchemaValidationEnforced, internalGetStatsAsync, internalGetSubscribeRate, internalGetSubscriptionDispatchRate, internalGetSubscriptionLevelDispatchRate, internalGetSubscriptionProperties, internalGetSubscriptions, internalGetSubscriptionTypesEnabled, internalGrantPermissionsOnTopic, internalOffloadStatus, internalPeekNthMessageAsync, internalRemoveCompactionThreshold, internalRemoveDispatchRate, internalRemoveMaxConsumers, internalRemoveMaxConsumersPerSubscription, internalRemoveMaxProducers, internalRemovePersistence, internalRemovePublishRate, internalRemoveReplicationClusters, internalRemoveRetention, internalRemoveSubscribeRate, internalRemoveSubscriptionDispatchRate, internalRemoveSubscriptionLevelDispatchRate, internalRemoveSubscriptionTypesEnabled, internalResetCursorAsync, internalResetCursorOnPosition, internalRevokePermissionsOnTopic, internalSetBacklogQuota, internalSetCompactionThreshold, internalSetDeduplication, internalSetDeduplicationSnapshotInterval, internalSetDelayedDeliveryPolicies, internalSetDispatchRate, internalSetInactiveTopicPolicies, internalSetMaxConsumers, internalSetMaxConsumersPerSubscription, internalSetMaxMessageSize, internalSetMaxProducers, internalSetMaxSubscriptionsPerTopic, internalSetMaxUnackedMessagesOnConsumer, internalSetMaxUnackedMessagesOnSubscription, internalSetMessageTTL, internalSetOffloadPolicies, internalSetPersistence, internalSetPublishRate, internalSetReplicatedSubscriptionStatus, internalSetReplicationClusters, internalSetReplicatorDispatchRate, internalSetRetention, internalSetSchemaCompatibilityStrategy, internalSetSchemaValidationEnforced, internalSetSubscribeRate, internalSetSubscriptionDispatchRate, internalSetSubscriptionLevelDispatchRate, internalSetSubscriptionTypesEnabled, internalSkipAllMessages, internalSkipMessages, internalTerminateAsync, internalTerminatePartitionedTopic, internalTriggerCompaction, internalTriggerCompactionNonPartitionedTopic, internalTriggerOffload, internalTruncateNonPartitionedTopicAsync, internalTruncateTopicAsync, internalUnloadTopic, internalUpdatePartitionedTopicAsync, internalUpdateSubscriptionProperties, internalValidateClientVersionAsync, preValidation, unsafeGetPartitionedTopicMetadataAsync, validateAdminOperationOnTopic, validateCreateTopicMethods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersAsync, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, filterSystemTopic, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isNotFoundException, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreateExtendedPartitionsAsync, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
PersistentTopics
public PersistentTopics()
-
-
Method Details
-
getList
-
getPartitionedTopicList
-
getPermissionsOnTopic
@GET @Path("/{property}/{cluster}/{namespace}/{topic}/permissions") public void getPermissionsOnTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic) -
grantPermissionsOnTopic
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/permissions/{role}") public void grantPermissionsOnTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("role") String role, Set<org.apache.pulsar.common.policies.data.AuthAction> actions) -
revokePermissionsOnTopic
@DELETE @Path("/{property}/{cluster}/{namespace}/{topic}/permissions/{role}") public void revokePermissionsOnTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("role") String role) -
createPartitionedTopic
@PUT @Path("/{property}/{cluster}/{namespace}/{topic}/partitions") public void createPartitionedTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, int numPartitions, @QueryParam("createLocalTopicOnly") @DefaultValue("false") boolean createLocalTopicOnly) -
createNonPartitionedTopic
@PUT @Path("/{tenant}/{cluster}/{namespace}/{topic}") public void createNonPartitionedTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
updatePartitionedTopic
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/partitions") public void updatePartitionedTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("updateLocalTopicOnly") @DefaultValue("false") boolean updateLocalTopicOnly, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("force") @DefaultValue("false") boolean force, int numPartitions) It updates number of partitions of an existing non-global partitioned topic. It requires partitioned-topic to be already exist and number of new partitions must be greater than existing number of partitions. Decrementing number of partitions requires deletion of topic which is not supported. Already created partitioned producers and consumers can't see newly created partitions and it requires to recreate them at application so, newly created producers and consumers can connect to newly added partitions as well. Therefore, it can violate partition ordering at producers until all producers are restarted at application.- Parameters:
property-cluster-namespace-numPartitions-
-
getPartitionedMetadata
@GET @Path("/{property}/{cluster}/{namespace}/{topic}/partitions") public void getPartitionedMetadata(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("checkAllowAutoCreation") @DefaultValue("false") boolean checkAllowAutoCreation) -
deletePartitionedTopic
@DELETE @Path("/{property}/{cluster}/{namespace}/{topic}/partitions") public void deletePartitionedTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("force") @DefaultValue("false") boolean force, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
unloadTopic
@PUT @Path("/{property}/{cluster}/{namespace}/{topic}/unload") public void unloadTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
deleteTopic
@DELETE @Path("/{property}/{cluster}/{namespace}/{topic}") public void deleteTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("force") @DefaultValue("false") boolean force, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
getSubscriptions
@GET @Path("/{property}/{cluster}/{namespace}/{topic}/subscriptions") public void getSubscriptions(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
getStats
@GET @Path("{property}/{cluster}/{namespace}/{topic}/stats") public void getStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("getPreciseBacklog") @DefaultValue("false") boolean getPreciseBacklog) -
getInternalStats
@GET @Path("{property}/{cluster}/{namespace}/{topic}/internalStats") public void getInternalStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("metadata") @DefaultValue("false") boolean metadata) -
getManagedLedgerInfo
@GET @Path("{property}/{cluster}/{namespace}/{topic}/internal-info") public void getManagedLedgerInfo(@PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
getPartitionedStats
@GET @Path("{property}/{cluster}/{namespace}/{topic}/partitioned-stats") public void getPartitionedStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("perPartition") @DefaultValue("true") boolean perPartition, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
getPartitionedStatsInternal
@GET @Path("{property}/{cluster}/{namespace}/{topic}/partitioned-internalStats") public void getPartitionedStatsInternal(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
deleteSubscription
@DELETE @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}") public void deleteSubscription(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @QueryParam("force") @DefaultValue("false") boolean force, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
skipAllMessages
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/skip_all") public void skipAllMessages(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
skipMessages
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/skip/{numMessages}") public void skipMessages(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @PathParam("numMessages") int numMessages, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
expireTopicMessages
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/expireMessages/{expireTimeInSeconds}") public void expireTopicMessages(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @PathParam("expireTimeInSeconds") int expireTimeInSeconds, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
expireTopicMessages
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/expireMessages") public void expireTopicMessages(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, org.apache.pulsar.client.impl.ResetCursorData resetCursorData) -
expireMessagesForAllSubscriptions
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/all_subscription/expireMessages/{expireTimeInSeconds}") public void expireMessagesForAllSubscriptions(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("expireTimeInSeconds") int expireTimeInSeconds, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
resetCursor
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/resetcursor/{timestamp}") public void resetCursor(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @PathParam("timestamp") long timestamp, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
resetCursorOnPosition
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/resetcursor") public void resetCursorOnPosition(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, org.apache.pulsar.client.impl.ResetCursorData resetCursorData) -
createSubscription
@PUT @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subscriptionName}") public void createSubscription(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String topic, @PathParam("subscriptionName") String encodedSubName, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, org.apache.pulsar.client.impl.MessageIdImpl messageId, @QueryParam("replicated") boolean replicated) -
peekNthMessage
@GET @Path("/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/position/{messagePosition}") public void peekNthMessage(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @PathParam("messagePosition") int messagePosition, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
getMessageByID
@GET @Path("/{property}/{cluster}/{namespace}/{topic}/ledger/{ledgerId}/entry/{entryId}") public void getMessageByID(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("ledgerId") Long ledgerId, @PathParam("entryId") Long entryId, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
getBacklog
@GET @Path("{property}/{cluster}/{namespace}/{topic}/backlog") public void getBacklog(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
terminate
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/terminate") public void terminate(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
terminatePartitionedTopic
@POST @Path("/{property}/{cluster}/{namespace}/{topic}/terminate/partitions") public void terminatePartitionedTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
compact
@PUT @Path("/{property}/{cluster}/{namespace}/{topic}/compaction") public void compact(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
compactionStatus
@GET @Path("/{property}/{cluster}/{namespace}/{topic}/compaction") public void compactionStatus(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("property") String property, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
triggerOffload
@PUT @Path("/{tenant}/{cluster}/{namespace}/{topic}/offload") public void triggerOffload(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, org.apache.pulsar.client.impl.MessageIdImpl messageId) -
offloadStatus
@GET @Path("/{tenant}/{cluster}/{namespace}/{topic}/offload") public void offloadStatus(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
getLastMessageId
@GET @Path("/{tenant}/{cluster}/{namespace}/{topic}/lastMessageId") public void getLastMessageId(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) -
setReplicatedSubscriptionStatus
@POST @Path("/{tenant}/{cluster}/{namespace}/{topic}/subscription/{subName}/replicatedSubscriptionStatus") public void setReplicatedSubscriptionStatus(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, boolean enabled) -
getReplicatedSubscriptionStatus
@GET @Path("/{tenant}/{cluster}/{namespace}/{topic}/subscription/{subName}/replicatedSubscriptionStatus") public void getReplicatedSubscriptionStatus(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("cluster") String cluster, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("subName") String encodedSubName, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative)
-