Interface ConfigurableCacheMap.UnitCalculator

    • Method Detail

      • calculateUnits

        int calculateUnits​(Object oKey,
                           Object oValue)
        Calculate a cache cost for the specified cache entry key and value.
        oKey - the cache key to evaluate for unit cost
        oValue - the cache value to evaluate for unit cost
        an integer value 0 or greater, with a larger value signifying a higher cost
        IllegalArgumentException - if any of the specified object types cannot be processed by this calculator
      • getName

        String getName()
        Obtain the name of the unit calculator. This is intended to be human readable for use in a monitoring tool; examples include "SimpleMemoryCalculator" and "BinaryMemoryCalculator".
        the name of the unit calculator