public class RedisClusterClient extends Object implements Redis
| Modifier and Type | Method and Description |
|---|---|
static void |
addReducer(Command command,
Function<List<Response>,Response> fn) |
static void |
addUnSupportedCommand(Command command,
String error) |
Redis |
batch(List<Request> requests,
Handler<AsyncResult<List<Response>>> handler) |
void |
close() |
Redis |
connect(Handler<AsyncResult<Redis>> onCreate)
Connects to the redis server.
|
static Redis |
create(Vertx vertx,
RedisOptions options) |
Redis |
endHandler(Handler<Void> handler)
Set an end handler.
|
Redis |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
Redis |
fetch(long amount)
Fetch the specified
amount of elements. |
Redis |
handler(Handler<Response> handler)
Set a data handler.
|
Redis |
pause()
Pause the
ReadStream, it sets the buffer in fetch mode and clears the actual demand. |
Redis |
resume()
Resume reading, and sets the buffer in
flowing mode. |
Redis |
send(Request request,
Handler<AsyncResult<Response>> handler) |
SocketAddress |
socketAddress()
Returns the address associated with this client.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateClient, createClientpipe, pipeTo, pipeTopublic static Redis create(Vertx vertx, RedisOptions options)
public Redis connect(Handler<AsyncResult<Redis>> onCreate)
Redispublic Redis exceptionHandler(Handler<Throwable> handler)
RedisexceptionHandler in interface ReadStream<Response>exceptionHandler in interface StreamBaseexceptionHandler in interface Redishandler - the exception handlerpublic Redis endHandler(Handler<Void> handler)
RedisendHandler in interface ReadStream<Response>endHandler in interface Redispublic Redis handler(Handler<Response> handler)
Redishandler in interface ReadStream<Response>handler in interface Redispublic Redis pause()
RedisReadStream, it sets the buffer in fetch mode and clears the actual demand.
While it's paused, no data will be sent to the data handler.
pause in interface ReadStream<Response>pause in interface Redispublic Redis resume()
Redisflowing mode.
If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<Response>resume in interface Redispublic Redis send(Request request, Handler<AsyncResult<Response>> handler)
public SocketAddress socketAddress()
RedissocketAddress in interface Redispublic Redis fetch(long amount)
Redisamount of elements. If the ReadStream has been paused, reading will
recommence with the specified amount of items, otherwise the specified amount will
be added to the current stream demand.fetch in interface ReadStream<Response>fetch in interface RedisCopyright © 2020. All rights reserved.