package io.vertx.groovy.redis;
public class RedisTransaction_GroovyExtension {
  public static io.vertx.redis.RedisTransaction clientKill(io.vertx.redis.RedisTransaction j_receiver, java.util.Map<String, Object> filter, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.clientKill(filter != null ? new io.vertx.redis.op.KillFilter(io.vertx.core.impl.ConversionHelper.toJsonObject(filter)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction exec(io.vertx.redis.RedisTransaction j_receiver, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<Object>>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.exec(handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray> ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonArray(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction hmset(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.util.Map<String, Object> values, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.hmset(key,
      values != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(values) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction migrate(io.vertx.redis.RedisTransaction j_receiver, java.lang.String host, int port, java.lang.String key, int destdb, long timeout, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.migrate(host,
      port,
      key,
      destdb,
      timeout,
      options != null ? new io.vertx.redis.op.MigrateOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction mset(io.vertx.redis.RedisTransaction j_receiver, java.util.Map<String, Object> keyvals, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.mset(keyvals != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(keyvals) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction msetnx(io.vertx.redis.RedisTransaction j_receiver, java.util.Map<String, Object> keyvals, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.msetnx(keyvals != null ? io.vertx.core.impl.ConversionHelper.toJsonObject(keyvals) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction setWithOptions(io.vertx.redis.RedisTransaction 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.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.setWithOptions(key,
      value,
      options != null ? new io.vertx.redis.op.SetOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction setBinaryWithOptions(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, io.vertx.core.buffer.Buffer value, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.setBinaryWithOptions(key,
      value,
      options != null ? new io.vertx.redis.op.SetOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction smembers(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<Object>>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.smembers(key,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>>() {
      public void handle(io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray> ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonArray(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction sort(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.sort(key,
      options != null ? new io.vertx.redis.op.SortOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction zrangebylex(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String min, java.lang.String max, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.zrangebylex(key,
      min,
      max,
      options != null ? new io.vertx.redis.op.LimitOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction zrangebyscore(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String min, java.lang.String max, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.zrangebyscore(key,
      min,
      max,
      options != null ? new io.vertx.redis.op.RangeLimitOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction zrevrangebylex(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String max, java.lang.String min, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.zrevrangebylex(key,
      max,
      min,
      options != null ? new io.vertx.redis.op.LimitOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction zrevrangebyscore(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String max, java.lang.String min, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.zrevrangebyscore(key,
      max,
      min,
      options != null ? new io.vertx.redis.op.RangeLimitOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction scan(io.vertx.redis.RedisTransaction j_receiver, java.lang.String cursor, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.scan(cursor,
      options != null ? new io.vertx.redis.op.ScanOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction sscan(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String cursor, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.sscan(key,
      cursor,
      options != null ? new io.vertx.redis.op.ScanOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction hscan(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String cursor, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.hscan(key,
      cursor,
      options != null ? new io.vertx.redis.op.ScanOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction zscan(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String cursor, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.zscan(key,
      cursor,
      options != null ? new io.vertx.redis.op.ScanOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction geoaddMany(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.util.List<java.util.Map<String, Object>> members, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.geoaddMany(key,
      members != null ? members.stream().map(elt -> elt != null ? new io.vertx.redis.op.GeoMember(io.vertx.core.impl.ConversionHelper.toJsonObject(elt)) : null).collect(java.util.stream.Collectors.toList()) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction georadiusWithOptions(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, double longitude, double latitude, double radius, io.vertx.redis.op.GeoUnit unit, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.georadiusWithOptions(key,
      longitude,
      latitude,
      radius,
      unit,
      options != null ? new io.vertx.redis.op.GeoRadiusOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.RedisTransaction georadiusbymemberWithOptions(io.vertx.redis.RedisTransaction j_receiver, java.lang.String key, java.lang.String member, double radius, io.vertx.redis.op.GeoUnit unit, java.util.Map<String, Object> options, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.georadiusbymemberWithOptions(key,
      member,
      radius,
      unit,
      options != null ? new io.vertx.redis.op.GeoRadiusOptions(io.vertx.core.impl.ConversionHelper.toJsonObject(options)) : null,
      handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.String>>() {
      public void handle(io.vertx.core.AsyncResult<java.lang.String> ar) {
        handler.handle(ar.map(event -> event));
      }
    } : null));
    return j_receiver;
  }
}