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 Details

    • getRoundedResource

      double getRoundedResource(double resourceValue, QueueCapacityVector.QueueCapacityVectorEntry capacityVectorEntry)
      Returns a whole number converted from the calculated resource value.
      Parameters:
      resourceValue - calculated resource value
      capacityVectorEntry - configured capacity entry
      Returns:
      rounded resource value