su.nlq.prometheus.jmx.connection.remote.RemoteConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmx-prometheus-collector Show documentation
Show all versions of jmx-prometheus-collector Show documentation
Pipe for JMX MBeans to Prometheus
package su.nlq.prometheus.jmx.connection.remote;
import org.jetbrains.annotations.NotNull;
import su.nlq.prometheus.jmx.connection.Connection;
import su.nlq.prometheus.jmx.connection.ConnectionConsumer;
import java.util.Optional;
public final class RemoteConnection extends Connection {
private final @NotNull Connection connection;
public RemoteConnection(@NotNull Optional name, @NotNull Connection connection) {
super(name);
this.connection = connection;
}
@Override
public void accept(@NotNull ConnectionConsumer consumer) {
connection.accept(consumer);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy