All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.groovy.redis.sentinel.RedisSentinel_GroovyExtension Maven / Gradle / Ivy

The newest version!
package io.vertx.groovy.redis.sentinel;
public class RedisSentinel_GroovyExtension {
  public static io.vertx.redis.sentinel.RedisSentinel masters(io.vertx.redis.sentinel.RedisSentinel j_receiver, io.vertx.core.Handler>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.masters(handler != null ? new io.vertx.core.Handler>() {
      public void handle(io.vertx.core.AsyncResult ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonArray(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.sentinel.RedisSentinel master(io.vertx.redis.sentinel.RedisSentinel j_receiver, java.lang.String name, io.vertx.core.Handler>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.master(name,
      handler != null ? new io.vertx.core.Handler>() {
      public void handle(io.vertx.core.AsyncResult ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonArray(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.sentinel.RedisSentinel slaves(io.vertx.redis.sentinel.RedisSentinel j_receiver, java.lang.String name, io.vertx.core.Handler>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.slaves(name,
      handler != null ? new io.vertx.core.Handler>() {
      public void handle(io.vertx.core.AsyncResult ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonArray(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.sentinel.RedisSentinel sentinels(io.vertx.redis.sentinel.RedisSentinel j_receiver, java.lang.String name, io.vertx.core.Handler>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.sentinels(name,
      handler != null ? new io.vertx.core.Handler>() {
      public void handle(io.vertx.core.AsyncResult ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonArray(event)));
      }
    } : null));
    return j_receiver;
  }
  public static io.vertx.redis.sentinel.RedisSentinel getMasterAddrByName(io.vertx.redis.sentinel.RedisSentinel j_receiver, java.lang.String name, io.vertx.core.Handler>> handler) {
    io.vertx.core.impl.ConversionHelper.fromObject(j_receiver.getMasterAddrByName(name,
      handler != null ? new io.vertx.core.Handler>() {
      public void handle(io.vertx.core.AsyncResult ar) {
        handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonArray(event)));
      }
    } : null));
    return j_receiver;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy