io.vertx.ext.dropwizard.DropwizardMetricsOptionsConverter Maven / Gradle / Ivy
package io.vertx.ext.dropwizard;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter and mapper for {@link io.vertx.ext.dropwizard.DropwizardMetricsOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.dropwizard.DropwizardMetricsOptions} original class using Vert.x codegen.
*/
public class DropwizardMetricsOptionsConverter {
static void fromJson(Iterable> json, DropwizardMetricsOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "registryName":
if (member.getValue() instanceof String) {
obj.setRegistryName((String)member.getValue());
}
break;
case "jmxEnabled":
if (member.getValue() instanceof Boolean) {
obj.setJmxEnabled((Boolean)member.getValue());
}
break;
case "jmxDomain":
if (member.getValue() instanceof String) {
obj.setJmxDomain((String)member.getValue());
}
break;
case "monitoredEventBusHandlers":
if (member.getValue() instanceof JsonArray) {
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy