su.nlq.prometheus.jmx.connection.ConnectionConfiguration 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;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.xml.bind.annotation.XmlAttribute;
import java.util.Optional;
import java.util.function.Supplier;
public abstract class ConnectionConfiguration implements Supplier {
@XmlAttribute
private @Nullable String name;
public final @NotNull Optional name() {
return Optional.ofNullable(name);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy