Class MetricKeyUtil


  • public final class MetricKeyUtil
    extends Object
    Holds the key creation method until we move it to the MetricKey interface.
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Method Detail

      • of

        public static <T extends NodeMetricKey<T> of​(String name,
                                                       Metric<T> metric)
        Creates a new metric key from its metric and name.
        Type Parameters:
        T - Type of node the metric can be computed on
        Parameters:
        name - The name of the metric
        metric - The metric to use
        Returns:
        The metric key