Interface BacklogQuota

All Known Implementing Classes:
BacklogQuotaImpl

public interface BacklogQuota
Unit of a backlog quota configuration for a scoped resource in a Pulsar instance.

A scoped resource is identified by a BacklogQuota.BacklogQuotaType enumeration type which is containing two attributes: limit representing a quota limit in bytes and policy for backlog retention policy.

  • Method Details

    • getLimit

      @Deprecated long getLimit()
      Deprecated.
      Gets quota limit in size. Remains for compatible
      Returns:
      quota limit in bytes
    • getLimitSize

      long getLimitSize()
      Gets quota limit in size.
      Returns:
      quota limit in bytes
    • getLimitTime

      int getLimitTime()
      Gets quota limit in time.
      Returns:
      quota limit in second
    • getPolicy

    • builder

      static BacklogQuota.Builder builder()