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 acl .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI acl(List args, Handler> handler) {
delegate.acl(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 acl .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI acl(List args) {
return
acl(args, ar -> { });
}
/**
* Redis command acl .
* @param args
* @return fluent self
*/
public Single rxAcl(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
acl(args, fut);
}));
}
/**
* 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
*/
public io.vertx.rxjava.redis.client.RedisAPI append(String arg0, String arg1) {
return
append(arg0, arg1, ar -> { });
}
/**
* Redis command append .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxAppend(String arg0, String arg1) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI asking() {
return
asking(ar -> { });
}
/**
* Redis command asking .
* @return fluent self
*/
public Single rxAsking() {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
asking(fut);
}));
}
/**
* Redis command auth .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI auth(List args, Handler> handler) {
delegate.auth(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 auth .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI auth(List args) {
return
auth(args, ar -> { });
}
/**
* Redis command auth .
* @param args
* @return fluent self
*/
public Single rxAuth(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
auth(args, 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
*/
public io.vertx.rxjava.redis.client.RedisAPI bgrewriteaof() {
return
bgrewriteaof(ar -> { });
}
/**
* Redis command bgrewriteaof .
* @return fluent self
*/
public Single rxBgrewriteaof() {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI bgsave(List args) {
return
bgsave(args, ar -> { });
}
/**
* Redis command bgsave .
* @param args
* @return fluent self
*/
public Single rxBgsave(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI bitcount(List args) {
return
bitcount(args, ar -> { });
}
/**
* Redis command bitcount .
* @param args
* @return fluent self
*/
public Single rxBitcount(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI bitfield(List args) {
return
bitfield(args, ar -> { });
}
/**
* Redis command bitfield .
* @param args
* @return fluent self
*/
public Single rxBitfield(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
bitfield(args, fut);
}));
}
/**
* Redis command bitfieldRo .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bitfieldRo(List args, Handler> handler) {
delegate.bitfieldRo(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 bitfieldRo .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI bitfieldRo(List args) {
return
bitfieldRo(args, ar -> { });
}
/**
* Redis command bitfieldRo .
* @param args
* @return fluent self
*/
public Single rxBitfieldRo(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
bitfieldRo(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
*/
public io.vertx.rxjava.redis.client.RedisAPI bitop(List args) {
return
bitop(args, ar -> { });
}
/**
* Redis command bitop .
* @param args
* @return fluent self
*/
public Single rxBitop(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI bitpos(List args) {
return
bitpos(args, ar -> { });
}
/**
* Redis command bitpos .
* @param args
* @return fluent self
*/
public Single rxBitpos(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI blpop(List args) {
return
blpop(args, ar -> { });
}
/**
* Redis command blpop .
* @param args
* @return fluent self
*/
public Single rxBlpop(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI brpop(List args) {
return
brpop(args, ar -> { });
}
/**
* Redis command brpop .
* @param args
* @return fluent self
*/
public Single rxBrpop(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI brpoplpush(String arg0, String arg1, String arg2) {
return
brpoplpush(arg0, arg1, arg2, ar -> { });
}
/**
* 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 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
*/
public io.vertx.rxjava.redis.client.RedisAPI bzpopmax(List args) {
return
bzpopmax(args, ar -> { });
}
/**
* Redis command bzpopmax .
* @param args
* @return fluent self
*/
public Single rxBzpopmax(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI bzpopmin(List args) {
return
bzpopmin(args, ar -> { });
}
/**
* Redis command bzpopmin .
* @param args
* @return fluent self
*/
public Single rxBzpopmin(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI client(List args) {
return
client(args, ar -> { });
}
/**
* Redis command client .
* @param args
* @return fluent self
*/
public Single rxClient(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI cluster(List args) {
return
cluster(args, ar -> { });
}
/**
* Redis command cluster .
* @param args
* @return fluent self
*/
public Single rxCluster(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
cluster(args, fut);
}));
}
/**
* Redis command command .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI command(List args, Handler> handler) {
delegate.command(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 command .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI command(List args) {
return
command(args, ar -> { });
}
/**
* Redis command command .
* @param args
* @return fluent self
*/
public Single rxCommand(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
command(args, 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
*/
public io.vertx.rxjava.redis.client.RedisAPI config(List args) {
return
config(args, ar -> { });
}
/**
* Redis command config .
* @param args
* @return fluent self
*/
public Single rxConfig(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI dbsize() {
return
dbsize(ar -> { });
}
/**
* Redis command dbsize .
* @return fluent self
*/
public Single rxDbsize() {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI debug(List args) {
return
debug(args, ar -> { });
}
/**
* Redis command debug .
* @param args
* @return fluent self
*/
public Single rxDebug(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI decr(String arg0) {
return
decr(arg0, ar -> { });
}
/**
* Redis command decr .
* @param arg0
* @return fluent self
*/
public Single rxDecr(String arg0) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI decrby(String arg0, String arg1) {
return
decrby(arg0, arg1, ar -> { });
}
/**
* Redis command decrby .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxDecrby(String arg0, String arg1) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI del(List args) {
return
del(args, ar -> { });
}
/**
* Redis command del .
* @param args
* @return fluent self
*/
public Single rxDel(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI discard() {
return
discard(ar -> { });
}
/**
* Redis command discard .
* @return fluent self
*/
public Single rxDiscard() {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI dump(String arg0) {
return
dump(arg0, ar -> { });
}
/**
* Redis command dump .
* @param arg0
* @return fluent self
*/
public Single rxDump(String arg0) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI echo(String arg0) {
return
echo(arg0, ar -> { });
}
/**
* Redis command echo .
* @param arg0
* @return fluent self
*/
public Single rxEcho(String arg0) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI eval(List args) {
return
eval(args, ar -> { });
}
/**
* Redis command eval .
* @param args
* @return fluent self
*/
public Single rxEval(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI evalsha(List args) {
return
evalsha(args, ar -> { });
}
/**
* Redis command evalsha .
* @param args
* @return fluent self
*/
public Single rxEvalsha(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI exec() {
return
exec(ar -> { });
}
/**
* Redis command exec .
* @return fluent self
*/
public Single rxExec() {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI exists(List args) {
return
exists(args, ar -> { });
}
/**
* Redis command exists .
* @param args
* @return fluent self
*/
public Single rxExists(List args) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI expire(String arg0, String arg1) {
return
expire(arg0, arg1, ar -> { });
}
/**
* Redis command expire .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxExpire(String arg0, String arg1) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI expireat(String arg0, String arg1) {
return
expireat(arg0, arg1, ar -> { });
}
/**
* Redis command expireat .
* @param arg0
* @param arg1
* @return fluent self
*/
public Single rxExpireat(String arg0, String arg1) {
return Single.create(new 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
*/
public io.vertx.rxjava.redis.client.RedisAPI flushall(List args) {
return
flushall(args, ar -> { });
}
/**
* Redis command flushall .
* @param args
* @return fluent self
*/
public Single rxFlushall(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
flushall(args, fut);
}));
}
/**
* Redis command flushdb .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI flushdb(List args, Handler> handler) {
delegate.flushdb(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 flushdb .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI flushdb(List args) {
return
flushdb(args, ar -> { });
}
/**
* Redis command flushdb .
* @param args
* @return fluent self
*/
public Single rxFlushdb(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
flushdb(args, fut);
}));
}
/**
* Redis command geoadd .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geoadd(List args, Handler> handler) {
delegate.geoadd(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 geoadd .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geoadd(List args) {
return
geoadd(args, ar -> { });
}
/**
* Redis command geoadd .
* @param args
* @return fluent self
*/
public Single rxGeoadd(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
geoadd(args, fut);
}));
}
/**
* Redis command geodist .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geodist(List args, Handler> handler) {
delegate.geodist(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 geodist .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geodist(List args) {
return
geodist(args, ar -> { });
}
/**
* Redis command geodist .
* @param args
* @return fluent self
*/
public Single rxGeodist(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
geodist(args, fut);
}));
}
/**
* Redis command geohash .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geohash(List args, Handler> handler) {
delegate.geohash(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 geohash .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geohash(List args) {
return
geohash(args, ar -> { });
}
/**
* Redis command geohash .
* @param args
* @return fluent self
*/
public Single rxGeohash(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
geohash(args, fut);
}));
}
/**
* Redis command geopos .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geopos(List args, Handler> handler) {
delegate.geopos(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 geopos .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI geopos(List args) {
return
geopos(args, ar -> { });
}
/**
* Redis command geopos .
* @param args
* @return fluent self
*/
public Single rxGeopos(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
geopos(args, fut);
}));
}
/**
* Redis command georadius .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI georadius(List args, Handler> handler) {
delegate.georadius(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 georadius .
* @param args
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI georadius(List args) {
return
georadius(args, ar -> { });
}
/**
* Redis command georadius .
* @param args
* @return fluent self
*/
public Single rxGeoradius(List args) {
return Single.create(new SingleOnSubscribeAdapter<>(fut -> {
georadius(args, fut);
}));
}
/**
* Redis command georadiusRo .
* @param args
* @param handler
* @return fluent self
*/
public io.vertx.rxjava.redis.client.RedisAPI georadiusRo(List args, Handler