Package org.apache.pulsar.broker.rest
Class Topics
@Path("/")
@Consumes("application/json")
@Produces("application/json")
public class Topics
extends TopicsBase
-
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 TypeMethodDescriptionvoidproduceOnNonPersistentTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, boolean authoritative, ProducerMessages producerMessages) voidproduceOnNonPersistentTopicPartition(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, int partition, boolean authoritative, ProducerMessages producerMessages) voidproduceOnPersistentTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, boolean authoritative, ProducerMessages producerMessages) voidproduceOnPersistentTopicPartition(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, int partition, boolean authoritative, ProducerMessages producerMessages) Methods inherited from class org.apache.pulsar.broker.rest.TopicsBase
messageToByteBuf, publishMessages, publishMessagesToPartition, validateProducePermissionMethods inherited from class org.apache.pulsar.broker.admin.impl.PersistentTopicsBase
getPartitionedTopicMetadata, handleTopicPolicyException, internalAnalyzeSubscriptionBacklog, internalCheckNonPartitionedTopicExists, internalCheckTopicExists, internalCompactionStatusAsync, internalCreateMissedPartitions, internalCreateNonPartitionedTopicAsync, internalCreateSubscription, internalDeletePartitionedTopic, internalDeleteShadowTopics, internalDeleteSubscriptionAsync, internalDeleteTopicAsync, internalExamineMessageAsync, internalExpireMessagesByPosition, internalExpireMessagesByTimestamp, internalExpireMessagesForAllSubscriptions, internalGetAutoSubscriptionCreation, internalGetBacklogAsync, internalGetBacklogQuota, internalGetBacklogSizeByMessageId, internalGetCompactionThreshold, internalGetDeduplication, internalGetDelayedDeliveryPolicies, internalGetDispatcherPauseOnAckStatePersistent, internalGetDispatchRate, internalGetEntryFilters, internalGetInactiveTopicPolicies, internalGetInternalStatsAsync, internalGetLastMessageId, 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, internalRemoveDispatcherPauseOnAckStatePersistent, internalRemoveDispatchRate, internalRemoveEntryFilters, internalRemoveMaxConsumers, internalRemoveMaxConsumersPerSubscription, internalRemoveMaxProducers, internalRemovePersistence, internalRemovePropertiesAsync, internalRemovePublishRate, internalRemoveReplicationClusters, internalRemoveRetention, internalRemoveSubscribeRate, internalRemoveSubscriptionDispatchRate, internalRemoveSubscriptionLevelDispatchRate, internalRemoveSubscriptionTypesEnabled, internalResetCursorAsync, internalResetCursorOnPosition, internalRevokePermissionsOnTopic, internalSetAutoSubscriptionCreation, internalSetBacklogQuota, internalSetCompactionThreshold, internalSetDeduplication, internalSetDeduplicationSnapshotInterval, internalSetDelayedDeliveryPolicies, internalSetDispatcherPauseOnAckStatePersistent, internalSetDispatchRate, internalSetEntryFilters, internalSetInactiveTopicPolicies, internalSetMaxConsumers, internalSetMaxConsumersPerSubscription, internalSetMaxMessageSize, internalSetMaxProducers, internalSetMaxSubscriptionsPerTopic, internalSetMaxUnackedMessagesOnConsumer, internalSetMaxUnackedMessagesOnSubscription, internalSetMessageTTL, internalSetOffloadPolicies, internalSetPersistence, internalSetPublishRate, internalSetReplicatedSubscriptionStatus, internalSetReplicationClusters, internalSetReplicatorDispatchRate, internalSetRetention, internalSetSchemaCompatibilityStrategy, internalSetSchemaValidationEnforced, internalSetShadowTopic, internalSetSubscribeRate, internalSetSubscriptionDispatchRate, internalSetSubscriptionLevelDispatchRate, internalSetSubscriptionTypesEnabled, internalSkipAllMessages, internalSkipMessages, internalTerminateAsync, internalTerminatePartitionedTopic, internalTriggerCompaction, internalTriggerCompactionNonPartitionedTopic, internalTriggerOffload, internalTrimTopic, internalTruncateNonPartitionedTopicAsync, internalTruncateTopicAsync, internalUnloadTopic, internalUpdatePartitionedTopicAsync, internalUpdatePropertiesAsync, internalUpdateSubscriptionProperties, internalValidateClientVersionAsync, preValidation, unsafeGetPartitionedTopicMetadataAsync, validateAdminOperationOnTopic, validateCreateTopic, validateShadowTopicsMethods inherited from class org.apache.pulsar.broker.admin.AdminResource
autoSubscriptionCreationOverride, bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, clusters, clustersAsync, dispatchRate, domain, filterSystemTopic, getAuthorizationService, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, internalCreatePartitionedTopicToReplicatedClustersInBackground, isLeaderBroker, isManagedLedgerNotFoundException, isNot307And404Exception, isNotFoundException, isRedirectException, namespaceBacklogQuota, objectReader, objectWriter, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateEntryFilters, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validateOffloadPolicies, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
authParams, bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, loadBalanceResources, maybeRedirectToBroker, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
Topics
public Topics()
-
-
Method Details
-
produceOnPersistentTopic
@POST @Path("/persistent/{tenant}/{namespace}/{topic}") public void produceOnPersistentTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, ProducerMessages producerMessages) -
produceOnPersistentTopicPartition
@POST @Path("/persistent/{tenant}/{namespace}/{topic}/partitions/{partition}") public void produceOnPersistentTopicPartition(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("partition") int partition, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, ProducerMessages producerMessages) -
produceOnNonPersistentTopic
@POST @Path("/non-persistent/{tenant}/{namespace}/{topic}") public void produceOnNonPersistentTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, ProducerMessages producerMessages) -
produceOnNonPersistentTopicPartition
@POST @Path("/non-persistent/{tenant}/{namespace}/{topic}/partitions/{partition}") public void produceOnNonPersistentTopicPartition(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @PathParam("partition") int partition, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, ProducerMessages producerMessages)
-