Class BacklogQuotaImpl
java.lang.Object
org.apache.pulsar.common.policies.data.impl.BacklogQuotaImpl
- All Implemented Interfaces:
BacklogQuota
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pulsar.common.policies.data.BacklogQuota
BacklogQuota.BacklogQuotaType, BacklogQuota.Builder, BacklogQuota.RetentionPolicy
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBacklogQuotaImpl
(long limitSize, int limitTime, BacklogQuota.RetentionPolicy policy) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
long
getLimit()
Deprecated.long
Gets quota limit in size.int
Gets quota limit in time.void
setLimit
(long limit) Deprecated.void
setLimitSize
(long limitSize) void
setLimitTime
(int limitTime) void
-
Field Details
-
BYTES_IN_GIGABYTE
public static final long BYTES_IN_GIGABYTE- See Also:
-
-
Constructor Details
-
BacklogQuotaImpl
-
-
Method Details
-
getLimit
Deprecated.Description copied from interface:BacklogQuota
Gets quota limit in size. Remains for compatible- Specified by:
getLimit
in interfaceBacklogQuota
- Returns:
- quota limit in bytes
-
setLimit
Deprecated. -
getLimitSize
public long getLimitSize()Description copied from interface:BacklogQuota
Gets quota limit in size.- Specified by:
getLimitSize
in interfaceBacklogQuota
- Returns:
- quota limit in bytes
-
setLimitSize
public void setLimitSize(long limitSize) -
getLimitTime
public int getLimitTime()Description copied from interface:BacklogQuota
Gets quota limit in time.- Specified by:
getLimitTime
in interfaceBacklogQuota
- Returns:
- quota limit in second
-
setLimitTime
public void setLimitTime(int limitTime) -
getPolicy
- Specified by:
getPolicy
in interfaceBacklogQuota
-
setPolicy
-
builder
-