package io.vertx.groovy.ext.consul;
public class ConsulService_GroovyExtension {
  public static io.vertx.ext.consul.ConsulService agentInfo(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.agentInfo(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService coordinateNodes(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.coordinateNodes(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService coordinateNodesWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.coordinateNodesWithOptions(options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.CoordinateList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService coordinateDatacenters(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.util.Map<String, Object>>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.coordinateDatacenters(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.DcCoordinates>>>() {
      public void handle(io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.DcCoordinates>> ar) {
        resultHandler.handle(ar.map(event -> event != null ? event.stream().map(elt -> elt != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(elt.toJson()) : null).collect(java.util.stream.Collectors.toList()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService getKeysWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String keyPrefix, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.String>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getKeysWithOptions(keyPrefix,
      options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.String>>>() {
      public void handle(io.vertx.core.AsyncResult<java.util.List<java.lang.String>> ar) {
        resultHandler.handle(ar.map(event -> event != null ? event.stream().map(elt -> elt).collect(java.util.stream.Collectors.toList()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService getValue(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String key, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getValue(key,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService getValueWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String key, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getValueWithOptions(key,
      options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValue> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService getValues(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String keyPrefix, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getValues(keyPrefix,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService getValuesWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String keyPrefix, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getValuesWithOptions(keyPrefix,
      options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.KeyValueList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService putValueWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String key, java.lang.String value, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.putValueWithOptions(key,
      value,
      options != null ? new io.vertx.ext.consul.KeyValueOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Boolean>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Boolean> ar) {
        resultHandler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService transaction(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> request, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.transaction(request != null ? new io.vertx.ext.consul.TxnRequest(io.vertx.core.impl.ConversionHelper.toJsonObject(request)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.TxnResponse>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.TxnResponse> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService createAclToken(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> token, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> idHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createAclToken(token != null ? new io.vertx.ext.consul.AclToken(io.vertx.core.impl.ConversionHelper.toJsonObject(token)) : null,
      idHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        idHandler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService updateAclToken(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> token, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> idHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.updateAclToken(token != null ? new io.vertx.ext.consul.AclToken(io.vertx.core.impl.ConversionHelper.toJsonObject(token)) : null,
      idHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        idHandler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService listAclTokens(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.util.Map<String, Object>>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.listAclTokens(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.AclToken>>>() {
      public void handle(io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.AclToken>> ar) {
        resultHandler.handle(ar.map(event -> event != null ? event.stream().map(elt -> elt != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(elt.toJson()) : null).collect(java.util.stream.Collectors.toList()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService infoAclToken(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> tokenHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.infoAclToken(id,
      tokenHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.AclToken>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.AclToken> ar) {
        tokenHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService fireEvent(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String name, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.fireEvent(name,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Event>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.Event> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService fireEventWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String name, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.fireEventWithOptions(name,
      options != null ? new io.vertx.ext.consul.EventOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Event>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.Event> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService listEvents(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.listEvents(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService listEventsWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.listEventsWithOptions(options != null ? new io.vertx.ext.consul.EventListOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.EventList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService registerService(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> serviceOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.registerService(serviceOptions != null ? new io.vertx.ext.consul.ServiceOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(serviceOptions)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService maintenanceService(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> maintenanceOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.maintenanceService(maintenanceOptions != null ? new io.vertx.ext.consul.MaintenanceOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(maintenanceOptions)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService healthChecks(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String service, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.healthChecks(service,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService healthChecksWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String service, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.healthChecksWithOptions(service,
      options != null ? new io.vertx.ext.consul.CheckQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService healthState(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.ext.consul.HealthState healthState, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.healthState(healthState,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList> ar) {
        handler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService healthStateWithOptions(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.ext.consul.HealthState healthState, java.util.Map<String, Object> checkQueryOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.healthStateWithOptions(healthState,
      checkQueryOptions != null ? new io.vertx.ext.consul.CheckQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(checkQueryOptions)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.CheckList> ar) {
        handler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService healthServiceNodes(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String service, boolean passing, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.healthServiceNodes(service,
      passing,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService healthServiceNodesWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String service, boolean passing, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.healthServiceNodesWithOptions(service,
      passing,
      options != null ? new io.vertx.ext.consul.ServiceQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceEntryList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogServiceNodes(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String service, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogServiceNodes(service,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogServiceNodesWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String service, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogServiceNodesWithOptions(service,
      options != null ? new io.vertx.ext.consul.ServiceQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogNodes(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogNodes(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogNodesWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogNodesWithOptions(options != null ? new io.vertx.ext.consul.NodeQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.NodeList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogServices(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogServices(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogServicesWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogServicesWithOptions(options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService localServices(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.util.Map<String, Object>>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.localServices(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.Service>>>() {
      public void handle(io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.Service>> ar) {
        resultHandler.handle(ar.map(event -> event != null ? event.stream().map(elt -> elt != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(elt.toJson()) : null).collect(java.util.stream.Collectors.toList()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogNodeServices(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String node, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogNodeServices(node,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService catalogNodeServicesWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String node, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.catalogNodeServicesWithOptions(node,
      options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.ServiceList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService localChecks(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.util.Map<String, Object>>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.localChecks(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.Check>>>() {
      public void handle(io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.Check>> ar) {
        resultHandler.handle(ar.map(event -> event != null ? event.stream().map(elt -> elt != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(elt.toJson()) : null).collect(java.util.stream.Collectors.toList()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService registerCheck(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> checkOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.registerCheck(checkOptions != null ? new io.vertx.ext.consul.CheckOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(checkOptions)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService createSessionWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> idHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createSessionWithOptions(options != null ? new io.vertx.ext.consul.SessionOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      idHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        idHandler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService infoSession(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.infoSession(id,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.Session> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService infoSessionWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String id, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.infoSessionWithOptions(id,
      options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.Session> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService renewSession(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.renewSession(id,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.Session>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.Session> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService listSessions(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.listSessions(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService listSessionsWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.listSessionsWithOptions(options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService listNodeSessions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String nodeId, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.listNodeSessions(nodeId,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService listNodeSessionsWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String nodeId, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.listNodeSessionsWithOptions(nodeId,
      options != null ? new io.vertx.ext.consul.BlockingQueryOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.SessionList> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService createPreparedQuery(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> definition, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createPreparedQuery(definition != null ? new io.vertx.ext.consul.PreparedQueryDefinition(io.vertx.core.impl.ConversionHelper.toJsonObject(definition)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        resultHandler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService getPreparedQuery(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String id, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getPreparedQuery(id,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryDefinition>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryDefinition> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService getAllPreparedQueries(io.vertx.ext.consul.ConsulService j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.util.Map<String, Object>>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getAllPreparedQueries(resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.PreparedQueryDefinition>>>() {
      public void handle(io.vertx.core.AsyncResult<java.util.List<io.vertx.ext.consul.PreparedQueryDefinition>> ar) {
        resultHandler.handle(ar.map(event -> event != null ? event.stream().map(elt -> elt != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(elt.toJson()) : null).collect(java.util.stream.Collectors.toList()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService updatePreparedQuery(io.vertx.ext.consul.ConsulService j_receiver, java.util.Map<String, Object> definition, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.updatePreparedQuery(definition != null ? new io.vertx.ext.consul.PreparedQueryDefinition(io.vertx.core.impl.ConversionHelper.toJsonObject(definition)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Void> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService executePreparedQuery(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String query, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.executePreparedQuery(query,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.ext.consul.ConsulService executePreparedQueryWithOptions(io.vertx.ext.consul.ConsulService j_receiver, java.lang.String query, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> resultHandler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.executePreparedQueryWithOptions(query,
      options != null ? new io.vertx.ext.consul.PreparedQueryExecuteOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.ext.consul.PreparedQueryExecuteResponse> ar) {
        resultHandler.handle(ar.map(event -> event != null ? io.vertx.core.impl.ConversionHelper.fromJsonObject(event.toJson()) : null));
      }
    } : null));
    return j_receiver;
  }
}