package io.vertx.reactivex.mysqlclient;
import io.vertx.reactivex.RxHelper;
import io.vertx.reactivex.ObservableHelper;
import io.vertx.reactivex.FlowableHelper;
import io.vertx.reactivex.impl.AsyncResultMaybe;
import io.vertx.reactivex.impl.AsyncResultSingle;
import io.vertx.reactivex.impl.AsyncResultCompletable;
import io.vertx.reactivex.WriteStreamObserver;
import io.vertx.reactivex.WriteStreamSubscriber;
import java.util.Map;
import java.util.Set;
import java.util.List;
import java.util.Iterator;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.vertx.core.Handler;
import io.vertx.core.AsyncResult;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import io.vertx.lang.rx.RxGen;
import io.vertx.lang.rx.TypeArg;
import io.vertx.lang.rx.MappingIterator;
@RxGen(io.vertx.mysqlclient.MySQLPool.class)
public class MySQLPool extends io.vertx.reactivex.sqlclient.Pool {
@Override
public String toString() {
return delegate.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MySQLPool that = (MySQLPool) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg<MySQLPool> __TYPE_ARG = new TypeArg<>( obj -> new MySQLPool((io.vertx.mysqlclient.MySQLPool) obj),
MySQLPool::getDelegate
);
private final io.vertx.mysqlclient.MySQLPool delegate;
public MySQLPool(io.vertx.mysqlclient.MySQLPool delegate) {
super(delegate);
this.delegate = delegate;
}
public MySQLPool(Object delegate) {
super((io.vertx.mysqlclient.MySQLPool)delegate);
this.delegate = (io.vertx.mysqlclient.MySQLPool)delegate;
}
public io.vertx.mysqlclient.MySQLPool getDelegate() {
return delegate;
}
public static io.vertx.reactivex.mysqlclient.MySQLPool pool(String connectionUri) {
io.vertx.reactivex.mysqlclient.MySQLPool ret = io.vertx.reactivex.mysqlclient.MySQLPool.newInstance((io.vertx.mysqlclient.MySQLPool)io.vertx.mysqlclient.MySQLPool.pool(connectionUri));
return ret;
}
public static io.vertx.reactivex.mysqlclient.MySQLPool pool(String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.mysqlclient.MySQLPool ret = io.vertx.reactivex.mysqlclient.MySQLPool.newInstance((io.vertx.mysqlclient.MySQLPool)io.vertx.mysqlclient.MySQLPool.pool(connectionUri, poolOptions));
return ret;
}
public static io.vertx.reactivex.mysqlclient.MySQLPool pool(io.vertx.reactivex.core.Vertx vertx, String connectionUri) {
io.vertx.reactivex.mysqlclient.MySQLPool ret = io.vertx.reactivex.mysqlclient.MySQLPool.newInstance((io.vertx.mysqlclient.MySQLPool)io.vertx.mysqlclient.MySQLPool.pool(vertx.getDelegate(), connectionUri));
return ret;
}
public static io.vertx.reactivex.mysqlclient.MySQLPool pool(io.vertx.reactivex.core.Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.mysqlclient.MySQLPool ret = io.vertx.reactivex.mysqlclient.MySQLPool.newInstance((io.vertx.mysqlclient.MySQLPool)io.vertx.mysqlclient.MySQLPool.pool(vertx.getDelegate(), connectionUri, poolOptions));
return ret;
}
public static io.vertx.reactivex.mysqlclient.MySQLPool pool(io.vertx.mysqlclient.MySQLConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.mysqlclient.MySQLPool ret = io.vertx.reactivex.mysqlclient.MySQLPool.newInstance((io.vertx.mysqlclient.MySQLPool)io.vertx.mysqlclient.MySQLPool.pool(connectOptions, poolOptions));
return ret;
}
public static io.vertx.reactivex.mysqlclient.MySQLPool pool(io.vertx.reactivex.core.Vertx vertx, io.vertx.mysqlclient.MySQLConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.mysqlclient.MySQLPool ret = io.vertx.reactivex.mysqlclient.MySQLPool.newInstance((io.vertx.mysqlclient.MySQLPool)io.vertx.mysqlclient.MySQLPool.pool(vertx.getDelegate(), connectOptions, poolOptions));
return ret;
}
public static MySQLPool newInstance(io.vertx.mysqlclient.MySQLPool arg) {
return arg != null ? new MySQLPool(arg) : null;
}
}