接口 BacklogQuota
-
- 所有已知实现类:
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.
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 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.
-
方法概要
所有方法 静态方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 static BacklogQuota.Builderbuilder()longgetLimit()已过时。longgetLimitSize()Gets quota limit in size.intgetLimitTime()Gets quota limit in time.BacklogQuota.RetentionPolicygetPolicy()
-
-
-
方法详细资料
-
getLimit
@Deprecated long getLimit()
已过时。Gets quota limit in size. Remains for compatible- 返回:
- quota limit in bytes
-
getLimitSize
long getLimitSize()
Gets quota limit in size.- 返回:
- quota limit in bytes
-
getLimitTime
int getLimitTime()
Gets quota limit in time.- 返回:
- quota limit in second
-
getPolicy
BacklogQuota.RetentionPolicy getPolicy()
-
builder
static BacklogQuota.Builder builder()
-
-