@Path(value="/persistent") @Produces(value="application/json") public class PersistentTopics extends PersistentTopicsBase
namespaceName, topicNamehttpRequest, NOT_IMPLEMENTED, servletContext, uri| Constructor and Description |
|---|
PersistentTopics() |
| Modifier and Type | Method and Description |
|---|---|
void |
compact(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
LongRunningProcessStatus |
compactionStatus(String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
createNonPartitionedTopic(String tenant,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
createPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
int numPartitions,
boolean createLocalTopicOnly) |
void |
createSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String topic,
String encodedSubName,
boolean authoritative,
MessageIdImpl messageId,
boolean replicated) |
void |
deletePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean force,
boolean authoritative,
boolean deleteSchema) |
void |
deleteSubscription(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
boolean force,
boolean authoritative) |
void |
deleteTopic(String property,
String cluster,
String namespace,
String encodedTopic,
boolean force,
boolean authoritative,
boolean deleteSchema) |
void |
expireMessagesForAllSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
int expireTimeInSeconds,
boolean authoritative) |
void |
expireTopicMessages(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
boolean authoritative,
ResetCursorData resetCursorData) |
void |
expireTopicMessages(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
int expireTimeInSeconds,
boolean authoritative) |
org.apache.pulsar.common.policies.data.PersistentOfflineTopicStats |
getBacklog(String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
org.apache.pulsar.common.policies.data.PersistentTopicInternalStats |
getInternalStats(String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative,
boolean metadata) |
void |
getLastMessageId(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
getList(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace) |
void |
getManagedLedgerInfo(String property,
String cluster,
String namespace,
String encodedTopic,
javax.ws.rs.container.AsyncResponse asyncResponse,
boolean authoritative) |
void |
getMessageByID(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
Long ledgerId,
Long entryId,
boolean authoritative) |
org.apache.pulsar.common.partition.PartitionedTopicMetadata |
getPartitionedMetadata(String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative,
boolean checkAllowAutoCreation) |
void |
getPartitionedStats(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean perPartition,
boolean authoritative) |
void |
getPartitionedStatsInternal(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
List<String> |
getPartitionedTopicList(String property,
String cluster,
String namespace) |
Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>> |
getPermissionsOnTopic(String property,
String cluster,
String namespace,
String encodedTopic) |
org.apache.pulsar.common.policies.data.TopicStats |
getStats(String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative,
boolean getPreciseBacklog) |
void |
getSubscriptions(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
grantPermissionsOnTopic(String property,
String cluster,
String namespace,
String encodedTopic,
String role,
Set<org.apache.pulsar.common.policies.data.AuthAction> actions) |
OffloadProcessStatus |
offloadStatus(String tenant,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
javax.ws.rs.core.Response |
peekNthMessage(String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
int messagePosition,
boolean authoritative) |
void |
resetCursor(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
long timestamp,
boolean authoritative) |
void |
resetCursorOnPosition(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
boolean authoritative,
ResetCursorData resetCursorData) |
void |
revokePermissionsOnTopic(String property,
String cluster,
String namespace,
String encodedTopic,
String role) |
void |
setReplicatedSubscriptionStatus(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
boolean authoritative,
boolean enabled) |
void |
skipAllMessages(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
boolean authoritative) |
void |
skipMessages(String property,
String cluster,
String namespace,
String encodedTopic,
String encodedSubName,
int numMessages,
boolean authoritative) |
org.apache.pulsar.client.api.MessageId |
terminate(String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
terminatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
triggerOffload(String tenant,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative,
MessageIdImpl messageId) |
void |
unloadTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
updatePartitionedTopic(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.
|
getPartitionedTopicMetadata, handleTopicPolicyException, internalCompactionStatus, internalCreateMissedPartitions, internalCreateNonPartitionedTopic, internalCreateSubscription, internalDeletePartitionedTopic, internalDeleteSubscription, internalDeleteSubscription, internalDeleteSubscriptionForcefully, internalDeleteTopic, internalDeleteTopic, internalDeleteTopicForcefully, internalExamineMessage, internalExpireMessagesByPosition, internalExpireMessagesByTimestamp, internalExpireMessagesForAllSubscriptions, internalGetBacklog, internalGetBacklogQuota, internalGetBacklogSizeByMessageId, internalGetCompactionThreshold, internalGetDeduplication, internalGetDelayedDeliveryPolicies, internalGetDispatchRate, internalGetInactiveTopicPolicies, internalGetInternalStats, internalGetLastMessageId, internalGetList, internalGetManagedLedgerInfo, internalGetManagedLedgerInfoForNonPartitionedTopic, internalGetMaxConsumers, internalGetMaxConsumersPerSubscription, internalGetMaxMessageSize, internalGetMaxProducers, internalGetMaxSubscriptionsPerTopic, internalGetMaxUnackedMessagesOnConsumer, internalGetMaxUnackedMessagesOnSubscription, internalGetMessageById, internalGetMessageIdByTimestamp, internalGetOffloadPolicies, internalGetPartitionedMetadata, internalGetPartitionedStats, internalGetPartitionedStatsInternal, internalGetPartitionedTopicList, internalGetPermissionsOnTopic, internalGetPersistence, internalGetPublishRate, internalGetReplicatorDispatchRate, internalGetRetention, internalGetStats, internalGetSubscribeRate, internalGetSubscriptionDispatchRate, internalGetSubscriptions, internalGetSubscriptionTypesEnabled, internalGrantPermissionsOnTopic, internalHandleResult, internalOffloadStatus, internalPeekNthMessage, internalRemoveCompactionThreshold, internalRemoveDispatchRate, internalRemoveMaxConsumers, internalRemoveMaxConsumersPerSubscription, internalRemoveMaxProducers, internalRemovePersistence, internalRemovePublishRate, internalRemoveRetention, internalRemoveSubscribeRate, internalRemoveSubscriptionDispatchRate, internalResetCursor, internalResetCursorOnPosition, internalRevokePermissionsOnTopic, internalSetBacklogQuota, internalSetCompactionThreshold, internalSetDeduplication, internalSetDeduplicationSnapshotInterval, internalSetDelayedDeliveryPolicies, internalSetDispatchRate, internalSetInactiveTopicPolicies, internalSetMaxConsumers, internalSetMaxConsumersPerSubscription, internalSetMaxMessageSize, internalSetMaxProducers, internalSetMaxSubscriptionsPerTopic, internalSetMaxUnackedMessagesOnConsumer, internalSetMaxUnackedMessagesOnSubscription, internalSetMessageTTL, internalSetOffloadPolicies, internalSetPersistence, internalSetPublishRate, internalSetReplicatedSubscriptionStatus, internalSetReplicatorDispatchRate, internalSetRetention, internalSetSubscribeRate, internalSetSubscriptionDispatchRate, internalSetSubscriptionTypesEnabled, internalSkipAllMessages, internalSkipMessages, internalTerminate, internalTerminatePartitionedTopic, internalTriggerCompaction, internalTriggerCompactionNonPartitionedTopic, internalTriggerOffload, internalTruncateNonPartitionedTopic, internalTruncateTopic, internalUnloadTopic, internalUpdatePartitionedTopic, preValidation, unsafeGetPartitionedTopicMetadataAsync, validateAdminAndClientPermission, validateAdminOperationOnTopic, validateCreateTopicbookKeeper, 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, validateTopicPolicyOperation@GET
@Path(value="/{property}/{cluster}/{namespace}")
public void getList(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace)
@GET
@Path(value="/{property}/{cluster}/{namespace}/partitioned")
public List<String> getPartitionedTopicList(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace)
@GET
@Path(value="/{property}/{cluster}/{namespace}/{topic}/permissions")
public Map<String,Set<org.apache.pulsar.common.policies.data.AuthAction>> getPermissionsOnTopic(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/permissions/{role}")
public void grantPermissionsOnTopic(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="role")
String role,
Set<org.apache.pulsar.common.policies.data.AuthAction> actions)
@DELETE
@Path(value="/{property}/{cluster}/{namespace}/{topic}/permissions/{role}")
public void revokePermissionsOnTopic(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="role")
String role)
@PUT
@Path(value="/{property}/{cluster}/{namespace}/{topic}/partitions")
public void createPartitionedTopic(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
int numPartitions,
@QueryParam(value="createLocalTopicOnly") @DefaultValue(value="false")
boolean createLocalTopicOnly)
@PUT
@Path(value="/{tenant}/{cluster}/{namespace}/{topic}")
public void createNonPartitionedTopic(@PathParam(value="tenant")
String tenant,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/partitions")
public void updatePartitionedTopic(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="updateLocalTopicOnly") @DefaultValue(value="false")
boolean updateLocalTopicOnly,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="force") @DefaultValue(value="false")
boolean force,
int numPartitions)
property - cluster - namespace - numPartitions - @GET
@Path(value="/{property}/{cluster}/{namespace}/{topic}/partitions")
public org.apache.pulsar.common.partition.PartitionedTopicMetadata getPartitionedMetadata(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="checkAllowAutoCreation") @DefaultValue(value="false")
boolean checkAllowAutoCreation)
@DELETE
@Path(value="/{property}/{cluster}/{namespace}/{topic}/partitions")
public void deletePartitionedTopic(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="force") @DefaultValue(value="false")
boolean force,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="deleteSchema") @DefaultValue(value="false")
boolean deleteSchema)
@PUT
@Path(value="/{property}/{cluster}/{namespace}/{topic}/unload")
public void unloadTopic(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@DELETE
@Path(value="/{property}/{cluster}/{namespace}/{topic}")
public void deleteTopic(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="force") @DefaultValue(value="false")
boolean force,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="deleteSchema") @DefaultValue(value="false")
boolean deleteSchema)
@GET
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscriptions")
public void getSubscriptions(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@GET
@Path(value="{property}/{cluster}/{namespace}/{topic}/stats")
public org.apache.pulsar.common.policies.data.TopicStats getStats(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="getPreciseBacklog") @DefaultValue(value="false")
boolean getPreciseBacklog)
@GET
@Path(value="{property}/{cluster}/{namespace}/{topic}/internalStats")
public org.apache.pulsar.common.policies.data.PersistentTopicInternalStats getInternalStats(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="metadata") @DefaultValue(value="false")
boolean metadata)
@GET
@Path(value="{property}/{cluster}/{namespace}/{topic}/internal-info")
public void getManagedLedgerInfo(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@GET
@Path(value="{property}/{cluster}/{namespace}/{topic}/partitioned-stats")
public void getPartitionedStats(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="perPartition") @DefaultValue(value="true")
boolean perPartition,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@GET
@Path(value="{property}/{cluster}/{namespace}/{topic}/partitioned-internalStats")
public void getPartitionedStatsInternal(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@DELETE
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}")
public void deleteSubscription(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@QueryParam(value="force") @DefaultValue(value="false")
boolean force,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/skip_all")
public void skipAllMessages(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/skip/{numMessages}")
public void skipMessages(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@PathParam(value="numMessages")
int numMessages,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/expireMessages/{expireTimeInSeconds}")
public void expireTopicMessages(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@PathParam(value="expireTimeInSeconds")
int expireTimeInSeconds,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/expireMessages")
public void expireTopicMessages(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
ResetCursorData resetCursorData)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/all_subscription/expireMessages/{expireTimeInSeconds}")
public void expireMessagesForAllSubscriptions(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="expireTimeInSeconds")
int expireTimeInSeconds,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/resetcursor/{timestamp}")
public void resetCursor(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@PathParam(value="timestamp")
long timestamp,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/resetcursor")
public void resetCursorOnPosition(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
ResetCursorData resetCursorData)
@PUT
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subscriptionName}")
public void createSubscription(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String topic,
@PathParam(value="subscriptionName")
String encodedSubName,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
MessageIdImpl messageId,
@QueryParam(value="replicated")
boolean replicated)
@GET
@Path(value="/{property}/{cluster}/{namespace}/{topic}/subscription/{subName}/position/{messagePosition}")
public javax.ws.rs.core.Response peekNthMessage(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@PathParam(value="messagePosition")
int messagePosition,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@GET
@Path(value="/{property}/{cluster}/{namespace}/{topic}/ledger/{ledgerId}/entry/{entryId}")
public void getMessageByID(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="ledgerId")
Long ledgerId,
@PathParam(value="entryId")
Long entryId,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@GET
@Path(value="{property}/{cluster}/{namespace}/{topic}/backlog")
public org.apache.pulsar.common.policies.data.PersistentOfflineTopicStats getBacklog(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/terminate")
public org.apache.pulsar.client.api.MessageId terminate(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{property}/{cluster}/{namespace}/{topic}/terminate/partitions")
public void terminatePartitionedTopic(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@PUT
@Path(value="/{property}/{cluster}/{namespace}/{topic}/compaction")
public void compact(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@GET
@Path(value="/{property}/{cluster}/{namespace}/{topic}/compaction")
public LongRunningProcessStatus compactionStatus(@PathParam(value="property")
String property,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@PUT
@Path(value="/{tenant}/{cluster}/{namespace}/{topic}/offload")
public void triggerOffload(@PathParam(value="tenant")
String tenant,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
MessageIdImpl messageId)
@GET
@Path(value="/{tenant}/{cluster}/{namespace}/{topic}/offload")
public OffloadProcessStatus offloadStatus(@PathParam(value="tenant")
String tenant,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@GET
@Path(value="/{tenant}/{cluster}/{namespace}/{topic}/lastMessageId")
public void getLastMessageId(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
@POST
@Path(value="/{tenant}/{cluster}/{namespace}/{topic}/subscription/{subName}/replicatedSubscriptionStatus")
public void setReplicatedSubscriptionStatus(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="cluster")
String cluster,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@PathParam(value="subName")
String encodedSubName,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
boolean enabled)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.