T - the type of value provided by the service on which the given runtime metric operatesV - the type of the value of which the given runtime metric operatespublic class MetricFunction<T,V> extends Object implements org.wildfly.common.function.ExceptionFunction<T,org.jboss.dmr.ModelNode,org.jboss.as.controller.OperationFailedException>
| Constructor and Description |
|---|
MetricFunction(Function<T,V> mapper,
Metric<V> metric)
Creates a functional view of the specified metric using the specified mapper.
|
public org.jboss.dmr.ModelNode apply(T value) throws org.jboss.as.controller.OperationFailedException
apply in interface org.wildfly.common.function.ExceptionFunction<T,org.jboss.dmr.ModelNode,org.jboss.as.controller.OperationFailedException>org.jboss.as.controller.OperationFailedExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.