Class DispatchRateImpl.DispatchRateImplBuilder
java.lang.Object
org.apache.pulsar.common.policies.data.impl.DispatchRateImpl.DispatchRateImplBuilder
- All Implemented Interfaces:
DispatchRate.Builder
- Enclosing class:
DispatchRateImpl
public static class DispatchRateImpl.DispatchRateImplBuilder
extends Object
implements DispatchRate.Builder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
dispatchThrottlingRateInByte
(long dispatchThrottlingRateInByte) dispatchThrottlingRateInMsg
(int dispatchThrottlingRateInMsg) ratePeriodInSecond
(int ratePeriodInSecond) relativeToPublishRate
(boolean relativeToPublishRate)
-
Constructor Details
-
DispatchRateImplBuilder
public DispatchRateImplBuilder()
-
-
Method Details
-
dispatchThrottlingRateInMsg
public DispatchRateImpl.DispatchRateImplBuilder dispatchThrottlingRateInMsg(int dispatchThrottlingRateInMsg) - Specified by:
dispatchThrottlingRateInMsg
in interfaceDispatchRate.Builder
-
dispatchThrottlingRateInByte
public DispatchRateImpl.DispatchRateImplBuilder dispatchThrottlingRateInByte(long dispatchThrottlingRateInByte) - Specified by:
dispatchThrottlingRateInByte
in interfaceDispatchRate.Builder
-
relativeToPublishRate
public DispatchRateImpl.DispatchRateImplBuilder relativeToPublishRate(boolean relativeToPublishRate) - Specified by:
relativeToPublishRate
in interfaceDispatchRate.Builder
-
ratePeriodInSecond
- Specified by:
ratePeriodInSecond
in interfaceDispatchRate.Builder
-
build
- Specified by:
build
in interfaceDispatchRate.Builder
-