Modifier and Type | Method and Description |
---|---|
io.vertx.core.Future<List<Response>> |
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.
|
default RedisConnection |
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 connection or returns to the pool.
|
RedisConnection |
endHandler(io.vertx.core.Handler<Void> endHandler) |
RedisConnection |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
RedisConnection |
fetch(long amount) |
RedisConnection |
handler(io.vertx.core.Handler<Response> handler) |
RedisConnection |
pause() |
boolean |
pendingQueueFull()
Flag to notify if the pending message queue (commands in transit) is full.
|
RedisConnection |
resume() |
io.vertx.core.Future<Response> |
send(Request command)
Send the given command to the redis server or cluster.
|
default RedisConnection |
send(Request command,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Response>> onSend)
Send the given command to the redis server or cluster.
|
RedisConnection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler
in interface io.vertx.core.streams.ReadStream<Response>
exceptionHandler
in interface io.vertx.core.streams.StreamBase
RedisConnection handler(io.vertx.core.Handler<Response> handler)
handler
in interface io.vertx.core.streams.ReadStream<Response>
RedisConnection pause()
pause
in interface io.vertx.core.streams.ReadStream<Response>
RedisConnection resume()
resume
in interface io.vertx.core.streams.ReadStream<Response>
RedisConnection fetch(long amount)
fetch
in interface io.vertx.core.streams.ReadStream<Response>
RedisConnection endHandler(io.vertx.core.Handler<Void> endHandler)
endHandler
in interface io.vertx.core.streams.ReadStream<Response>
default RedisConnection send(Request command, io.vertx.core.Handler<io.vertx.core.AsyncResult<Response>> onSend)
command
- the command to sendonSend
- the asynchronous result handler.io.vertx.core.Future<Response> send(Request command)
command
- the command to senddefault RedisConnection 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.io.vertx.core.Future<List<Response>> batch(List<Request> commands)
commands
- list of command to sendvoid close()
boolean pendingQueueFull()
Copyright © 2020 Eclipse. All rights reserved.