@Path(value="/persistent") @Produces(value="application/json") public class PersistentTopics extends PersistentTopicsBase
namespaceName, PARTITIONED_TOPIC_PATH_ZNODE, 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 |
createPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String property,
String cluster,
String namespace,
String encodedTopic,
int numPartitions) |
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) |
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) |
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) |
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 |
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,
int numPartitions)
It updates number of partitions of an existing non-global partitioned topic.
|
getPartitionedTopicMetadata, internalCompactionStatus, internalCreateMissedPartitions, internalCreateNonPartitionedTopic, internalCreateSubscription, internalDeletePartitionedTopic, internalDeleteSubscription, internalDeleteSubscription, internalDeleteSubscriptionForcefully, internalDeleteTopic, internalDeleteTopic, internalDeleteTopicForcefully, internalExamineMessage, internalExpireMessagesByPosition, internalExpireMessagesByTimestamp, internalExpireMessagesForAllSubscriptions, internalGetBacklog, internalGetCompactionThreshold, internalGetDispatchRate, internalGetInternalStats, internalGetLastMessageId, internalGetList, internalGetManagedLedgerInfo, internalGetManagedLedgerInfoForNonPartitionedTopic, internalGetMaxConsumers, internalGetMaxConsumersPerSubscription, internalGetMaxMessageSize, internalGetMaxProducers, internalGetMaxSubscriptionsPerTopic, internalGetMessageById, internalGetPartitionedMetadata, internalGetPartitionedStats, internalGetPartitionedStatsInternal, internalGetPartitionedTopicList, internalGetPermissionsOnTopic, internalGetPersistence, internalGetPublishRate, internalGetRetention, internalGetStats, internalGetSubscribeRate, internalGetSubscriptionDispatchRate, internalGetSubscriptions, internalGrantPermissionsOnTopic, internalOffloadStatus, internalPeekNthMessage, internalRemoveBacklogQuota, internalRemoveCompactionThreshold, internalRemoveDispatchRate, internalRemoveMaxConsumers, internalRemoveMaxConsumersPerSubscription, internalRemoveMaxProducers, internalRemovePersistence, internalRemovePublishRate, internalRemoveRetention, internalRemoveSubscribeRate, internalRemoveSubscriptionDispatchRate, internalResetCursor, internalResetCursorOnPosition, internalRevokePermissionsOnTopic, internalSetBacklogQuota, internalSetCompactionThreshold, internalSetDeduplicationEnabled, internalSetDeduplicationSnapshotInterval, internalSetDelayedDeliveryPolicies, internalSetDispatchRate, internalSetInactiveTopicPolicies, internalSetMaxConsumers, internalSetMaxConsumersPerSubscription, internalSetMaxMessageSize, internalSetMaxProducers, internalSetMaxSubscriptionsPerTopic, internalSetMaxUnackedMessagesOnConsumer, internalSetMaxUnackedMessagesOnSubscription, internalSetMessageTTL, internalSetOffloadPolicies, internalSetPersistence, internalSetPublishRate, internalSetRetention, internalSetSubscribeRate, internalSetSubscriptionDispatchRate, internalSkipAllMessages, internalSkipMessages, internalTerminate, internalTerminatePartitionedTopic, internalTriggerCompaction, internalTriggerCompactionNonPartitionedTopic, internalTriggerOffload, internalUnloadTopic, internalUpdatePartitionedTopic, preValidation, unsafeGetPartitionedTopicMetadataAsync, validateAdminAccessForSubscriber, validateAdminAndClientPermission, validateAdminOperationOnTopic, validateReadOperationOnTopic, validateWriteOperationOnTopiccheckArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersCache, clustersListCache, dispatchRate, domain, failureDomainCache, failureDomainListCache, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getListOfNamespaces, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getTopicPolicies, globalZk, globalZkCache, internalCreatePartitionedTopic, isLeaderBroker, isNamespaceReplicated, jsonMapper, localCacheService, localPoliciesCache, localZk, localZkCache, managedLedgerListCache, mergeNamespaceWithDefaults, namespaceBacklogQuota, namespaceIsolationPoliciesCache, policiesCache, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tenantsCache, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateBrokerName, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validateNamespaceOwnershipWithBundles, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePoliciesReadOnlyAccess, validateSuperUserAccess, validateTopicExistedAndCheckAllowAutoCreation, validateTopicName, validateTopicName, zkCreate, zkCreateOptimistic, zkCreateOptimisticAsync, zkPathExists, zkSynccheckAuthorization, checkConnect, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, config, getClusterDataIfDifferentCluster, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, joinPath, originalPrincipal, path, pulsar, setPulsar, splitPath, validateAdminAccessForTenant, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateGlobalNamespaceOwnership, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespacePolicyOperation, validateTenantOperation, validateTopicOwnership@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)
@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,
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)
@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)
@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)
@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)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.