Interface QueueResourceRoundingStrategy
- All Known Implementing Classes:
DefaultQueueResourceRoundingStrategy
public interface QueueResourceRoundingStrategy
Represents an approach on how to convert a calculated resource from floating point to a whole
number.
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetRoundedResource(double resourceValue, QueueCapacityVector.QueueCapacityVectorEntry capacityVectorEntry) Returns a whole number converted from the calculated resource value.
-
Method Details
-
getRoundedResource
double getRoundedResource(double resourceValue, QueueCapacityVector.QueueCapacityVectorEntry capacityVectorEntry) Returns a whole number converted from the calculated resource value.- Parameters:
resourceValue- calculated resource valuecapacityVectorEntry- configured capacity entry- Returns:
- rounded resource value
-