package io.vertx.groovy.core;
public class Vertx_GroovyExtension {
  public static io.vertx.core.net.NetServer createNetServer(io.vertx.core.Vertx j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createNetServer(options != null ? new io.vertx.core.net.NetServerOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.net.NetClient createNetClient(io.vertx.core.Vertx j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createNetClient(options != null ? new io.vertx.core.net.NetClientOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpServer createHttpServer(io.vertx.core.Vertx j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createHttpServer(options != null ? new io.vertx.core.http.HttpServerOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.http.HttpClient createHttpClient(io.vertx.core.Vertx j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createHttpClient(options != null ? new io.vertx.core.http.HttpClientOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.datagram.DatagramSocket createDatagramSocket(io.vertx.core.Vertx j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createDatagramSocket(options != null ? new io.vertx.core.datagram.DatagramSocketOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static io.vertx.core.dns.DnsClient createDnsClient(io.vertx.core.Vertx j_receiver, java.util.Map<String, Object> options) {
    return io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.createDnsClient(options != null ? new io.vertx.core.dns.DnsClientOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null));
  }
  public static void deployVerticle(io.vertx.core.Vertx j_receiver, java.lang.String name, java.util.Map<String, Object> options) {
    j_receiver.deployVerticle(name,
      options != null ? new io.vertx.core.DeploymentOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null);
  }
  public static void deployVerticle(io.vertx.core.Vertx j_receiver, java.lang.String name, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> completionHandler) {
    j_receiver.deployVerticle(name,
      options != null ? new io.vertx.core.DeploymentOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      completionHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        completionHandler.handle(ar.map(event -> event));
      }
    } : null);
  }
  public static <T>void executeBlocking(io.vertx.core.Vertx j_receiver, io.vertx.core.Handler<io.vertx.core.Promise<java.lang.Object>> blockingCodeHandler, boolean ordered, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler) {
    j_receiver.executeBlocking(blockingCodeHandler != null ? event -> blockingCodeHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null,
      ordered,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Object> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
  public static <T>void executeBlocking(io.vertx.core.Vertx j_receiver, io.vertx.core.Handler<io.vertx.core.Promise<java.lang.Object>> blockingCodeHandler, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>> resultHandler) {
    j_receiver.executeBlocking(blockingCodeHandler != null ? event -> blockingCodeHandler.handle(io.vertx.core.impl.ConversionHelper.fromObject(event)) : null,
      resultHandler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Object>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.Object> ar) {
        resultHandler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromObject(event)));
      }
    } : null);
  }
}