Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.vertx.rxjava.redis.client.RedisAPI Maven / Gradle / Ivy
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package io.vertx.rxjava.redis.client;
import rx.Observable;
import rx.Single;
import io.vertx.rx.java.RxHelper;
import io.vertx.rx.java.WriteStreamSubscriber;
import io.vertx.rx.java.SingleOnSubscribeAdapter;
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;
/**
* Auto generated Redis API client wrapper.
*
*
* NOTE: This class has been automatically generated from the {@link io.vertx.redis.client.RedisAPI original} non RX-ified interface using Vert.x codegen.
*/
@RxGen(io.vertx.redis.client.RedisAPI.class)
public class RedisAPI {
@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;
RedisAPI that = (RedisAPI) o;
return delegate.equals(that.delegate);
}
@Override
public int hashCode() {
return delegate.hashCode();
}
public static final TypeArg __TYPE_ARG = new TypeArg<>( obj -> new RedisAPI((io.vertx.redis.client.RedisAPI) obj),
RedisAPI::getDelegate
);
private final io.vertx.redis.client.RedisAPI delegate;
public RedisAPI(io.vertx.redis.client.RedisAPI delegate) {
this.delegate = delegate;
}
public RedisAPI(Object delegate) {
this.delegate = (io.vertx.redis.client.RedisAPI)delegate;
}
public io.vertx.redis.client.RedisAPI getDelegate() {
return delegate;
}
public void close() {
delegate.close();
}
/**
* Redis command append .
* @param arg0
* @param arg1
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI append(String arg0, String arg1, Handler> handler) {
delegate.append(arg0, arg1, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command append .
* @param arg0
* @param arg1
* @return fluent self
* @deprecated use {@link #rxAppend} instead
*/
@Deprecated()
public Observable appendObservable(String arg0, String arg1) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
append(arg0, arg1, handler.toHandler());
return handler;
}
/**
* Redis command append .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxAppend(String arg0, String arg1) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
append(arg0, arg1, fut);
}));
}
/**
* Redis command asking .
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI asking(Handler> handler) {
delegate.asking(new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command asking .
* @return fluent self
* @deprecated use {@link #rxAsking} instead
*/
@Deprecated()
public Observable askingObservable() {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
asking(handler.toHandler());
return handler;
}
/**
* Redis command asking .
* @return fluent self
*/
public Single rxAsking() {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
asking(fut);
}));
}
/**
* Redis command auth .
* @param arg0
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI auth(String arg0, Handler> handler) {
delegate.auth(arg0, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command auth .
* @param arg0
* @return fluent self
* @deprecated use {@link #rxAuth} instead
*/
@Deprecated()
public Observable authObservable(String arg0) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
auth(arg0, handler.toHandler());
return handler;
}
/**
* Redis command auth .
* @param arg0
* @return fluent self
*/
public Single rxAuth(String arg0) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
auth(arg0, fut);
}));
}
/**
* Redis command bgrewriteaof .
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bgrewriteaof(Handler> handler) {
delegate.bgrewriteaof(new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bgrewriteaof .
* @return fluent self
* @deprecated use {@link #rxBgrewriteaof} instead
*/
@Deprecated()
public Observable bgrewriteaofObservable() {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bgrewriteaof(handler.toHandler());
return handler;
}
/**
* Redis command bgrewriteaof .
* @return fluent self
*/
public Single rxBgrewriteaof() {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bgrewriteaof(fut);
}));
}
/**
* Redis command bgsave .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bgsave(List args, Handler> handler) {
delegate.bgsave(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bgsave .
* @param args
* @return fluent self
* @deprecated use {@link #rxBgsave} instead
*/
@Deprecated()
public Observable bgsaveObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bgsave(args, handler.toHandler());
return handler;
}
/**
* Redis command bgsave .
* @param args
* @return fluent self
*/
public Single rxBgsave(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bgsave(args, fut);
}));
}
/**
* Redis command bitcount .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bitcount(List args, Handler> handler) {
delegate.bitcount(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bitcount .
* @param args
* @return fluent self
* @deprecated use {@link #rxBitcount} instead
*/
@Deprecated()
public Observable bitcountObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bitcount(args, handler.toHandler());
return handler;
}
/**
* Redis command bitcount .
* @param args
* @return fluent self
*/
public Single rxBitcount(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bitcount(args, fut);
}));
}
/**
* Redis command bitfield .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bitfield(List args, Handler> handler) {
delegate.bitfield(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bitfield .
* @param args
* @return fluent self
* @deprecated use {@link #rxBitfield} instead
*/
@Deprecated()
public Observable bitfieldObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bitfield(args, handler.toHandler());
return handler;
}
/**
* Redis command bitfield .
* @param args
* @return fluent self
*/
public Single rxBitfield(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bitfield(args, fut);
}));
}
/**
* Redis command bitop .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bitop(List args, Handler> handler) {
delegate.bitop(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bitop .
* @param args
* @return fluent self
* @deprecated use {@link #rxBitop} instead
*/
@Deprecated()
public Observable bitopObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bitop(args, handler.toHandler());
return handler;
}
/**
* Redis command bitop .
* @param args
* @return fluent self
*/
public Single rxBitop(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bitop(args, fut);
}));
}
/**
* Redis command bitpos .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bitpos(List args, Handler> handler) {
delegate.bitpos(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bitpos .
* @param args
* @return fluent self
* @deprecated use {@link #rxBitpos} instead
*/
@Deprecated()
public Observable bitposObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bitpos(args, handler.toHandler());
return handler;
}
/**
* Redis command bitpos .
* @param args
* @return fluent self
*/
public Single rxBitpos(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bitpos(args, fut);
}));
}
/**
* Redis command blpop .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI blpop(List args, Handler> handler) {
delegate.blpop(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command blpop .
* @param args
* @return fluent self
* @deprecated use {@link #rxBlpop} instead
*/
@Deprecated()
public Observable blpopObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
blpop(args, handler.toHandler());
return handler;
}
/**
* Redis command blpop .
* @param args
* @return fluent self
*/
public Single rxBlpop(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
blpop(args, fut);
}));
}
/**
* Redis command brpop .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI brpop(List args, Handler> handler) {
delegate.brpop(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command brpop .
* @param args
* @return fluent self
* @deprecated use {@link #rxBrpop} instead
*/
@Deprecated()
public Observable brpopObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
brpop(args, handler.toHandler());
return handler;
}
/**
* Redis command brpop .
* @param args
* @return fluent self
*/
public Single rxBrpop(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
brpop(args, fut);
}));
}
/**
* Redis command brpoplpush .
* @param arg0
* @param arg1
* @param arg2
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI brpoplpush(String arg0, String arg1, String arg2, Handler> handler) {
delegate.brpoplpush(arg0, arg1, arg2, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command brpoplpush .
* @param arg0
* @param arg1
* @param arg2
* @return fluent self
* @deprecated use {@link #rxBrpoplpush} instead
*/
@Deprecated()
public Observable brpoplpushObservable(String arg0, String arg1, String arg2) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
brpoplpush(arg0, arg1, arg2, handler.toHandler());
return handler;
}
/**
* Redis command brpoplpush .
* @param arg0
* @param arg1
* @param arg2
* @return fluent self
*/
public Single rxBrpoplpush(String arg0, String arg1, String arg2) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
brpoplpush(arg0, arg1, arg2, fut);
}));
}
/**
* Redis command bzpopmax .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bzpopmax(List args, Handler> handler) {
delegate.bzpopmax(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bzpopmax .
* @param args
* @return fluent self
* @deprecated use {@link #rxBzpopmax} instead
*/
@Deprecated()
public Observable bzpopmaxObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bzpopmax(args, handler.toHandler());
return handler;
}
/**
* Redis command bzpopmax .
* @param args
* @return fluent self
*/
public Single rxBzpopmax(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bzpopmax(args, fut);
}));
}
/**
* Redis command bzpopmin .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bzpopmin(List args, Handler> handler) {
delegate.bzpopmin(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command bzpopmin .
* @param args
* @return fluent self
* @deprecated use {@link #rxBzpopmin} instead
*/
@Deprecated()
public Observable bzpopminObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
bzpopmin(args, handler.toHandler());
return handler;
}
/**
* Redis command bzpopmin .
* @param args
* @return fluent self
*/
public Single rxBzpopmin(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
bzpopmin(args, fut);
}));
}
/**
* Redis command client .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI client(List args, Handler> handler) {
delegate.client(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command client .
* @param args
* @return fluent self
* @deprecated use {@link #rxClient} instead
*/
@Deprecated()
public Observable clientObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
client(args, handler.toHandler());
return handler;
}
/**
* Redis command client .
* @param args
* @return fluent self
*/
public Single rxClient(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
client(args, fut);
}));
}
/**
* Redis command cluster .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI cluster(List args, Handler> handler) {
delegate.cluster(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command cluster .
* @param args
* @return fluent self
* @deprecated use {@link #rxCluster} instead
*/
@Deprecated()
public Observable clusterObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
cluster(args, handler.toHandler());
return handler;
}
/**
* Redis command cluster .
* @param args
* @return fluent self
*/
public Single rxCluster(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
cluster(args, fut);
}));
}
/**
* Redis command command .
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI command(Handler> handler) {
delegate.command(new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command command .
* @return fluent self
* @deprecated use {@link #rxCommand} instead
*/
@Deprecated()
public Observable commandObservable() {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
command(handler.toHandler());
return handler;
}
/**
* Redis command command .
* @return fluent self
*/
public Single rxCommand() {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
command(fut);
}));
}
/**
* Redis command config .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI config(List args, Handler> handler) {
delegate.config(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command config .
* @param args
* @return fluent self
* @deprecated use {@link #rxConfig} instead
*/
@Deprecated()
public Observable configObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
config(args, handler.toHandler());
return handler;
}
/**
* Redis command config .
* @param args
* @return fluent self
*/
public Single rxConfig(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
config(args, fut);
}));
}
/**
* Redis command dbsize .
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI dbsize(Handler> handler) {
delegate.dbsize(new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command dbsize .
* @return fluent self
* @deprecated use {@link #rxDbsize} instead
*/
@Deprecated()
public Observable dbsizeObservable() {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
dbsize(handler.toHandler());
return handler;
}
/**
* Redis command dbsize .
* @return fluent self
*/
public Single rxDbsize() {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
dbsize(fut);
}));
}
/**
* Redis command debug .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI debug(List args, Handler> handler) {
delegate.debug(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command debug .
* @param args
* @return fluent self
* @deprecated use {@link #rxDebug} instead
*/
@Deprecated()
public Observable debugObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
debug(args, handler.toHandler());
return handler;
}
/**
* Redis command debug .
* @param args
* @return fluent self
*/
public Single rxDebug(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
debug(args, fut);
}));
}
/**
* Redis command decr .
* @param arg0
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI decr(String arg0, Handler> handler) {
delegate.decr(arg0, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command decr .
* @param arg0
* @return fluent self
* @deprecated use {@link #rxDecr} instead
*/
@Deprecated()
public Observable decrObservable(String arg0) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
decr(arg0, handler.toHandler());
return handler;
}
/**
* Redis command decr .
* @param arg0
* @return fluent self
*/
public Single rxDecr(String arg0) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
decr(arg0, fut);
}));
}
/**
* Redis command decrby .
* @param arg0
* @param arg1
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI decrby(String arg0, String arg1, Handler> handler) {
delegate.decrby(arg0, arg1, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command decrby .
* @param arg0
* @param arg1
* @return fluent self
* @deprecated use {@link #rxDecrby} instead
*/
@Deprecated()
public Observable decrbyObservable(String arg0, String arg1) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
decrby(arg0, arg1, handler.toHandler());
return handler;
}
/**
* Redis command decrby .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxDecrby(String arg0, String arg1) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
decrby(arg0, arg1, fut);
}));
}
/**
* Redis command del .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI del(List args, Handler> handler) {
delegate.del(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command del .
* @param args
* @return fluent self
* @deprecated use {@link #rxDel} instead
*/
@Deprecated()
public Observable delObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
del(args, handler.toHandler());
return handler;
}
/**
* Redis command del .
* @param args
* @return fluent self
*/
public Single rxDel(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
del(args, fut);
}));
}
/**
* Redis command discard .
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI discard(Handler> handler) {
delegate.discard(new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command discard .
* @return fluent self
* @deprecated use {@link #rxDiscard} instead
*/
@Deprecated()
public Observable discardObservable() {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
discard(handler.toHandler());
return handler;
}
/**
* Redis command discard .
* @return fluent self
*/
public Single rxDiscard() {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
discard(fut);
}));
}
/**
* Redis command dump .
* @param arg0
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI dump(String arg0, Handler> handler) {
delegate.dump(arg0, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command dump .
* @param arg0
* @return fluent self
* @deprecated use {@link #rxDump} instead
*/
@Deprecated()
public Observable dumpObservable(String arg0) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
dump(arg0, handler.toHandler());
return handler;
}
/**
* Redis command dump .
* @param arg0
* @return fluent self
*/
public Single rxDump(String arg0) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
dump(arg0, fut);
}));
}
/**
* Redis command echo .
* @param arg0
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI echo(String arg0, Handler> handler) {
delegate.echo(arg0, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command echo .
* @param arg0
* @return fluent self
* @deprecated use {@link #rxEcho} instead
*/
@Deprecated()
public Observable echoObservable(String arg0) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
echo(arg0, handler.toHandler());
return handler;
}
/**
* Redis command echo .
* @param arg0
* @return fluent self
*/
public Single rxEcho(String arg0) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
echo(arg0, fut);
}));
}
/**
* Redis command eval .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI eval(List args, Handler> handler) {
delegate.eval(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command eval .
* @param args
* @return fluent self
* @deprecated use {@link #rxEval} instead
*/
@Deprecated()
public Observable evalObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
eval(args, handler.toHandler());
return handler;
}
/**
* Redis command eval .
* @param args
* @return fluent self
*/
public Single rxEval(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
eval(args, fut);
}));
}
/**
* Redis command evalsha .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI evalsha(List args, Handler> handler) {
delegate.evalsha(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command evalsha .
* @param args
* @return fluent self
* @deprecated use {@link #rxEvalsha} instead
*/
@Deprecated()
public Observable evalshaObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
evalsha(args, handler.toHandler());
return handler;
}
/**
* Redis command evalsha .
* @param args
* @return fluent self
*/
public Single rxEvalsha(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
evalsha(args, fut);
}));
}
/**
* Redis command exec .
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI exec(Handler> handler) {
delegate.exec(new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command exec .
* @return fluent self
* @deprecated use {@link #rxExec} instead
*/
@Deprecated()
public Observable execObservable() {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
exec(handler.toHandler());
return handler;
}
/**
* Redis command exec .
* @return fluent self
*/
public Single rxExec() {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
exec(fut);
}));
}
/**
* Redis command exists .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI exists(List args, Handler> handler) {
delegate.exists(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command exists .
* @param args
* @return fluent self
* @deprecated use {@link #rxExists} instead
*/
@Deprecated()
public Observable existsObservable(List args) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
exists(args, handler.toHandler());
return handler;
}
/**
* Redis command exists .
* @param args
* @return fluent self
*/
public Single rxExists(List args) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
exists(args, fut);
}));
}
/**
* Redis command expire .
* @param arg0
* @param arg1
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI expire(String arg0, String arg1, Handler> handler) {
delegate.expire(arg0, arg1, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command expire .
* @param arg0
* @param arg1
* @return fluent self
* @deprecated use {@link #rxExpire} instead
*/
@Deprecated()
public Observable expireObservable(String arg0, String arg1) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
expire(arg0, arg1, handler.toHandler());
return handler;
}
/**
* Redis command expire .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxExpire(String arg0, String arg1) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
expire(arg0, arg1, fut);
}));
}
/**
* Redis command expireat .
* @param arg0
* @param arg1
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI expireat(String arg0, String arg1, Handler> handler) {
delegate.expireat(arg0, arg1, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command expireat .
* @param arg0
* @param arg1
* @return fluent self
* @deprecated use {@link #rxExpireat} instead
*/
@Deprecated()
public Observable expireatObservable(String arg0, String arg1) {
io.vertx.rx.java.ObservableFuture handler = io.vertx.rx.java.RxHelper.observableFuture();
expireat(arg0, arg1, handler.toHandler());
return handler;
}
/**
* Redis command expireat .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxExpireat(String arg0, String arg1) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
expireat(arg0, arg1, fut);
}));
}
/**
* Redis command flushall .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI flushall(List args, Handler> handler) {
delegate.flushall(args, new Handler>() {
public void handle(AsyncResult ar) {
if (ar.succeeded()) {
handler.handle(io.vertx.core.Future.succeededFuture(io.vertx.rxjava.redis.client.Response.newInstance((io.vertx.redis.client.Response)ar.result())));
} else {
handler.handle(io.vertx.core.Future.failedFuture(ar.cause()));
}
}
});
return this;
}
/**
* Redis command flushall .
* @param args
* @return fluent self
* @deprecated use {@link #rxFlushall} instead
*/
@Deprecated()
public Observable flushallObservable(List args) {
io.vertx.rx.java.ObservableFuture