Class AppenderGradient2Cfg
java.lang.Object
io.camunda.zeebe.logstreams.impl.backpressure.AppenderGradient2Cfg
- All Implemented Interfaces:
AlgorithmCfg,Supplier<com.netflix.concurrency.limits.limit.AbstractLimit>
This class should be later be located in the broker configs - due to the primitive usage
currently we are not able to access the BrokerCfg, this is the reason why the configuration is
only based on environment variables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEnvironment(Environment environment) com.netflix.concurrency.limits.limit.AbstractLimitget()intintintintintdoublesetInitialLimit(int initialLimit) setLongWindow(int longWindow) setMaxConcurrency(int maxConcurrency) setMinLimit(int minLimit) setQueueSize(int queueSize) setRttTolerance(double rttTolerance) toString()
-
Constructor Details
-
AppenderGradient2Cfg
public AppenderGradient2Cfg()
-
-
Method Details
-
applyEnvironment
- Specified by:
applyEnvironmentin interfaceAlgorithmCfg
-
getInitialLimit
public int getInitialLimit() -
setInitialLimit
-
getMaxConcurrency
public int getMaxConcurrency() -
setMaxConcurrency
-
getQueueSize
public int getQueueSize() -
setQueueSize
-
getMinLimit
public int getMinLimit() -
setMinLimit
-
getLongWindow
public int getLongWindow() -
setLongWindow
-
getRttTolerance
public double getRttTolerance() -
setRttTolerance
-
get
public com.netflix.concurrency.limits.limit.AbstractLimit get() -
toString
-