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