package io.vertx.reactivex.pgclient;
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.pgclient.PgPool.class)
public class PgPool 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;
PgPool that = (PgPool) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg<PgPool> __TYPE_ARG = new TypeArg<>( obj -> new PgPool((io.vertx.pgclient.PgPool) obj),
PgPool::getDelegate
);
private final io.vertx.pgclient.PgPool delegate;
public PgPool(io.vertx.pgclient.PgPool delegate) {
super(delegate);
this.delegate = delegate;
}
public PgPool(Object delegate) {
super((io.vertx.pgclient.PgPool)delegate);
this.delegate = (io.vertx.pgclient.PgPool)delegate;
}
public io.vertx.pgclient.PgPool getDelegate() {
return delegate;
}
public static io.vertx.reactivex.pgclient.PgPool pool() {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool());
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(poolOptions));
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(String connectionUri) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(connectionUri));
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(connectionUri, poolOptions));
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(io.vertx.reactivex.core.Vertx vertx, String connectionUri) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(vertx.getDelegate(), connectionUri));
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(io.vertx.reactivex.core.Vertx vertx, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(vertx.getDelegate(), poolOptions));
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(io.vertx.reactivex.core.Vertx vertx, String connectionUri, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(vertx.getDelegate(), connectionUri, poolOptions));
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(io.vertx.pgclient.PgConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(connectOptions, poolOptions));
return ret;
}
public static io.vertx.reactivex.pgclient.PgPool pool(io.vertx.reactivex.core.Vertx vertx, io.vertx.pgclient.PgConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) {
io.vertx.reactivex.pgclient.PgPool ret = io.vertx.reactivex.pgclient.PgPool.newInstance((io.vertx.pgclient.PgPool)io.vertx.pgclient.PgPool.pool(vertx.getDelegate(), connectOptions, poolOptions));
return ret;
}
public static PgPool newInstance(io.vertx.pgclient.PgPool arg) {
return arg != null ? new PgPool(arg) : null;
}
}