Interface BacklogQuota
-
- All Known Implementing Classes:
BacklogQuotaImpl
public interface BacklogQuotaUnit of a backlog quota configuration for a scoped resource in a Pulsar instance.A scoped resource is identified by a
BacklogQuota.BacklogQuotaTypeenumeration type which is containing two attributes:limitrepresenting a quota limit in bytes andpolicyfor backlog retention policy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBacklogQuota.BacklogQuotaTypeIdentifier to a backlog quota configuration (an instance ofBacklogQuota).static interfaceBacklogQuota.Builderstatic classBacklogQuota.RetentionPolicyEnumeration type determines how to retain backlog against the resource shortages.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static BacklogQuota.Builderbuilder()longgetLimitSize()Gets quota limit in size.intgetLimitTime()Gets quota limit in time.BacklogQuota.RetentionPolicygetPolicy()
-
-
-
Method Detail
-
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
static BacklogQuota.Builder builder()
-
-