Class ResourceQuotas


  • @Path("/resource-quotas")
    @Produces("application/json")
    @Consumes("application/json")
    public class ResourceQuotas
    extends ResourceQuotasBase
    • Constructor Detail

      • ResourceQuotas

        public ResourceQuotas()
    • Method Detail

      • getDefaultResourceQuota

        @GET
        public org.apache.pulsar.common.policies.data.ResourceQuota getDefaultResourceQuota()
                                                                                     throws java.lang.Exception
        Overrides:
        getDefaultResourceQuota in class ResourceQuotasBase
        Throws:
        java.lang.Exception
      • setDefaultResourceQuota

        @POST
        public void setDefaultResourceQuota​(org.apache.pulsar.common.policies.data.ResourceQuota quota)
                                     throws java.lang.Exception
        Overrides:
        setDefaultResourceQuota in class ResourceQuotasBase
        Throws:
        java.lang.Exception
      • getNamespaceBundleResourceQuota

        @GET
        @Path("/{tenant}/{namespace}/{bundle}")
        public org.apache.pulsar.common.policies.data.ResourceQuota getNamespaceBundleResourceQuota​(@PathParam("tenant")
                                                                                                    java.lang.String tenant,
                                                                                                    @PathParam("namespace")
                                                                                                    java.lang.String namespace,
                                                                                                    @PathParam("bundle")
                                                                                                    java.lang.String bundleRange)
      • setNamespaceBundleResourceQuota

        @POST
        @Path("/{tenant}/{namespace}/{bundle}")
        public void setNamespaceBundleResourceQuota​(@PathParam("tenant")
                                                    java.lang.String tenant,
                                                    @PathParam("namespace")
                                                    java.lang.String namespace,
                                                    @PathParam("bundle")
                                                    java.lang.String bundleRange,
                                                    org.apache.pulsar.common.policies.data.ResourceQuota quota)
      • removeNamespaceBundleResourceQuota

        @DELETE
        @Path("/{tenant}/{namespace}/{bundle}")
        public void removeNamespaceBundleResourceQuota​(@PathParam("tenant")
                                                       java.lang.String tenant,
                                                       @PathParam("namespace")
                                                       java.lang.String namespace,
                                                       @PathParam("bundle")
                                                       java.lang.String bundleRange)