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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIdentifier to a backlog quota configuration (an instance ofBacklogQuota).static interfacestatic enumEnumeration type determines how to retain backlog against the resource shortages. -
Method Summary
Modifier and TypeMethodDescriptionstatic BacklogQuota.Builderbuilder()longgetLimit()Deprecated.longGets quota limit in size.intGets quota limit in time.default voidvalidate()
-
Method Details
-
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
BacklogQuota.RetentionPolicy getPolicy() -
builder
-
validate
default void validate()
-