Class MetricFunction<T,​V>

  • Type Parameters:
    T - the type of value provided by the service on which the given runtime metric operates
    V - the type of the value of which the given runtime metric operates
    All Implemented Interfaces:
    org.wildfly.common.function.ExceptionFunction<T,​org.jboss.dmr.ModelNode,​OperationFailedException>

    public class MetricFunction<T,​V>
    extends Object
    implements org.wildfly.common.function.ExceptionFunction<T,​org.jboss.dmr.ModelNode,​OperationFailedException>
    A functional view of a runtime metric.
    Author:
    Paul Ferraro
    • Constructor Detail

      • MetricFunction

        public MetricFunction​(Function<T,​V> mapper,
                              Metric<V> metric)
        Creates a functional view of the specified metric using the specified mapper.
        Parameters:
        mapper - maps the value of a service to the value on which the given metric operates
        metric - a runtime metric