org.wildfly.swarm.config.modcluster.proxy.load_provider.LoadMetricConsumer Maven / Gradle / Ivy
package org.wildfly.swarm.config.modcluster.proxy.load_provider;
import org.wildfly.swarm.config.modcluster.proxy.load_provider.LoadMetric;
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface LoadMetricConsumer> {
/**
* Configure a pre-constructed instance of LoadMetric resource
*
* @parameter Instance of LoadMetric to configure
* @return nothing
*/
void accept(T value);
default LoadMetricConsumer andThen(LoadMetricConsumer after) {
return (c) -> {
this.accept(c);
after.accept(c);
};
}
}