Class NonPersistentTopics


@Path("/non-persistent") @Produces("application/json") public class NonPersistentTopics extends PersistentTopics
  • Constructor Details

    • NonPersistentTopics

      public NonPersistentTopics()
  • Method Details

    • getPartitionedMetadata

      @GET @Path("/{tenant}/{namespace}/{topic}/partitions") public void getPartitionedMetadata(@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, @QueryParam("checkAllowAutoCreation") @DefaultValue("false") boolean checkAllowAutoCreation)
      Overrides:
      getPartitionedMetadata in class PersistentTopics
    • getInternalStats

      @GET @Path("{tenant}/{namespace}/{topic}/internalStats") public void getInternalStats(@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, @QueryParam("metadata") @DefaultValue("false") boolean metadata)
      Overrides:
      getInternalStats in class PersistentTopics
    • createPartitionedTopic

      @PUT @Path("/{tenant}/{namespace}/{topic}/partitions") public void createPartitionedTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, int numPartitions, @QueryParam("createLocalTopicOnly") @DefaultValue("false") boolean createLocalTopicOnly)
      Overrides:
      createPartitionedTopic in class PersistentTopics
    • getPartitionedStats

      @GET @Path("{tenant}/{namespace}/{topic}/partitioned-stats") public void getPartitionedStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("perPartition") @DefaultValue("true") boolean perPartition, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("getPreciseBacklog") @DefaultValue("false") boolean getPreciseBacklog, @QueryParam("subscriptionBacklogSize") @DefaultValue("false") boolean subscriptionBacklogSize, @QueryParam("getEarliestTimeInBacklog") @DefaultValue("false") boolean getEarliestTimeInBacklog)
      Overrides:
      getPartitionedStats in class PersistentTopics
    • unloadTopic

      @PUT @Path("/{tenant}/{namespace}/{topic}/unload") public void unloadTopic(@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)
      Overrides:
      unloadTopic in class PersistentTopics
    • getList

      @GET @Path("/{tenant}/{namespace}") public void getList(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @QueryParam("bundle") String nsBundle, @QueryParam("includeSystemTopic") boolean includeSystemTopic)
      Overrides:
      getList in class PersistentTopics
    • getListFromBundle

      @GET @Path("/{tenant}/{namespace}/{bundle}") public void getListFromBundle(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("bundle") String bundleRange)
    • truncateTopic

      @DELETE @Path("/{tenant}/{namespace}/{topic}/truncate") public void truncateTopic(@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)
      Overrides:
      truncateTopic in class PersistentTopics
    • validateAdminOperationOnTopic

      protected void validateAdminOperationOnTopic(org.apache.pulsar.common.naming.TopicName topicName, boolean authoritative)