public class LinearDrainingAdaptiveAlgorithm extends java.lang.Object implements DrainingAdaptiveAlgorithm
| Constructor and Description |
|---|
LinearDrainingAdaptiveAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeDrainSizeLineary(long currentSize,
long threshold) |
int |
getDrainSize(long currentSize)
Calculates drain size for current queue size value.
|
void |
init() |
void |
setTenant(Tenant tenant) |
protected boolean |
shouldAdapt(long currentSize,
long threshold) |
@PostConstruct public void init()
public int getDrainSize(long currentSize)
DrainingAdaptiveAlgorithmgetDrainSize in interface DrainingAdaptiveAlgorithmprotected int computeDrainSizeLineary(long currentSize,
long threshold)
protected boolean shouldAdapt(long currentSize,
long threshold)
public void setTenant(Tenant tenant)
Copyright © 2018 SAP SE. All Rights Reserved.