public class Redis extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<Redis> |
__TYPE_ARG |
Constructor and Description |
---|
Redis(Object delegate) |
Redis(io.vertx.redis.client.Redis delegate) |
Modifier and Type | Method and Description |
---|---|
Redis |
batch(List<Request> commands)
Sends a list of commands in a single IO operation, this prevents any inter twinning to happen from other
client users.
|
Redis |
batch(List<Request> commands,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<Response>>> onSend)
Sends a list of commands in a single IO operation, this prevents any inter twinning to happen from other
client users.
|
void |
close()
Closes the client and terminates any connection.
|
Redis |
connect()
Connects to the redis server.
|
Redis |
connect(io.vertx.core.Handler<io.vertx.core.AsyncResult<RedisConnection>> handler)
Connects to the redis server.
|
static Redis |
createClient(Vertx vertx)
Create a new redis client using the default client options.
|
static Redis |
createClient(Vertx vertx,
io.vertx.redis.client.RedisOptions options)
Create a new redis client using the given client options.
|
static Redis |
createClient(Vertx vertx,
String connectionString)
Create a new redis client using the default client options.
|
boolean |
equals(Object o) |
io.vertx.redis.client.Redis |
getDelegate() |
int |
hashCode() |
static Redis |
newInstance(io.vertx.redis.client.Redis arg) |
rx.Single<List<Response>> |
rxBatch(List<Request> commands)
Sends a list of commands in a single IO operation, this prevents any inter twinning to happen from other
client users.
|
rx.Single<RedisConnection> |
rxConnect()
Connects to the redis server.
|
rx.Single<Response> |
rxSend(Request command)
Send the given command to the redis server or cluster.
|
Redis |
send(Request command)
Send the given command to the redis server or cluster.
|
Redis |
send(Request command,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Response>> onSend)
Send the given command to the redis server or cluster.
|
String |
toString() |
public Redis(io.vertx.redis.client.Redis delegate)
public Redis(Object delegate)
public io.vertx.redis.client.Redis getDelegate()
public static Redis createClient(Vertx vertx)
vertx
- the vertx instancepublic static Redis createClient(Vertx vertx, String connectionString)
vertx
- the vertx instanceconnectionString
- a string URI following the scheme: redis://[username:password@][host][:port][/database]public static Redis createClient(Vertx vertx, io.vertx.redis.client.RedisOptions options)
vertx
- the vertx instanceoptions
- the user provided optionspublic Redis connect(io.vertx.core.Handler<io.vertx.core.AsyncResult<RedisConnection>> handler)
handler
- the async result handlerpublic Redis connect()
public rx.Single<RedisConnection> rxConnect()
public void close()
public Redis send(Request command, io.vertx.core.Handler<io.vertx.core.AsyncResult<Response>> onSend)
command
- the command to sendonSend
- the asynchronous result handler.public Redis send(Request command)
command
- the command to sendpublic rx.Single<Response> rxSend(Request command)
command
- the command to sendpublic Redis batch(List<Request> commands, io.vertx.core.Handler<io.vertx.core.AsyncResult<List<Response>>> onSend)
commands
- list of command to sendonSend
- the asynchronous result handler.public Redis batch(List<Request> commands)
commands
- list of command to sendpublic rx.Single<List<Response>> rxBatch(List<Request> commands)
commands
- list of command to sendpublic static Redis newInstance(io.vertx.redis.client.Redis arg)
Copyright © 2021 Eclipse. All rights reserved.