public class DefaultQueueResourceRoundingStrategy extends Object implements QueueResourceRoundingStrategy
Constructor and Description |
---|
DefaultQueueResourceRoundingStrategy(QueueCapacityVector.ResourceUnitCapacityType[] capacityTypePrecedence) |
Modifier and Type | Method and Description |
---|---|
double |
getRoundedResource(double resourceValue,
QueueCapacityVector.QueueCapacityVectorEntry capacityVectorEntry)
Returns a whole number converted from the calculated resource value.
|
public DefaultQueueResourceRoundingStrategy(QueueCapacityVector.ResourceUnitCapacityType[] capacityTypePrecedence)
public double getRoundedResource(double resourceValue, QueueCapacityVector.QueueCapacityVectorEntry capacityVectorEntry)
QueueResourceRoundingStrategy
getRoundedResource
in interface QueueResourceRoundingStrategy
resourceValue
- calculated resource valuecapacityVectorEntry
- configured capacity entryCopyright © 2008–2024 Apache Software Foundation. All rights reserved.