Class BacklogQuotaManager

java.lang.Object
org.apache.pulsar.broker.service.BacklogQuotaManager

public class BacklogQuotaManager extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pulsar.common.policies.data.impl.BacklogQuotaImpl
    getBacklogQuota(org.apache.pulsar.common.naming.NamespaceName namespace, org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType backlogQuotaType)
     
    org.apache.pulsar.common.policies.data.impl.BacklogQuotaImpl
     
    void
    handleExceededBacklogQuota(PersistentTopic persistentTopic, org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType backlogQuotaType, boolean preciseTimeBasedBacklogQuotaCheck)
    Handle exceeded size backlog by using policies set in the zookeeper for given topic.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BacklogQuotaManager

      public BacklogQuotaManager(PulsarService pulsar)
  • Method Details

    • getDefaultQuota

      public org.apache.pulsar.common.policies.data.impl.BacklogQuotaImpl getDefaultQuota()
    • getBacklogQuota

      public org.apache.pulsar.common.policies.data.impl.BacklogQuotaImpl getBacklogQuota(org.apache.pulsar.common.naming.NamespaceName namespace, org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType backlogQuotaType)
    • handleExceededBacklogQuota

      public void handleExceededBacklogQuota(PersistentTopic persistentTopic, org.apache.pulsar.common.policies.data.BacklogQuota.BacklogQuotaType backlogQuotaType, boolean preciseTimeBasedBacklogQuotaCheck)
      Handle exceeded size backlog by using policies set in the zookeeper for given topic.
      Parameters:
      persistentTopic - Topic on which backlog has been exceeded