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