Interface ReactiveRedisConnection
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Subinterfaces:
ReactiveRedisClusterConnection
Redis connection using reactive infrastructure declaring entry points for reactive command execution.
ReactiveRedisConnection
is typically implemented by a stateful object that requires to be closed
once it is no longer required.
Commands can be either executed by passing plain arguments like key
, value
or wrapped inside a
command stream. Streaming command execution accepts Publisher
of a particular
ReactiveRedisConnection.Command
. Commands are executed at the time their emission.
Arguments are binary-safe by using ByteBuffer
arguments. Expect ByteBuffer
to be consumed by
ReactiveRedisConnection
invocation or during execution. Any ByteBuffer
used as method parameter
should not be altered after invocation.
- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
ReactiveRedisConnection.CommandResponse
implementation forByteBuffer
responses for absent keys.static class
ReactiveRedisConnection.CommandResponse
implementation forBoolean
responses.static class
ReactiveRedisConnection.CommandResponse
implementation forByteBuffer
responses.static interface
Base interface for Redis commands executed with a reactive infrastructure.static class
Base class for command responses.static class
ReactiveRedisConnection.Command
for key-bound operations.static class
static class
ReactiveRedisConnection.CommandResponse
implementation forList
responses.static class
ReactiveRedisConnection.NumericResponse<I, O extends Number>
ReactiveRedisConnection.CommandResponse
implementation fornumeric
responses.static class
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
Asynchronously close the connection and release associated resources.GetReactiveHashCommands
.GetReactiveKeyCommands
.GetReactiveListCommands
.ping()
Test connection.GetReactiveSetCommands
.GetReactiveZSetCommands
.
-
Method Details
-
close
default void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
closeLater
-
keyCommands
-
stringCommands
-
numberCommands
-
listCommands
-
setCommands
-
zSetCommands
-
hashCommands
-
geoCommands
-
hyperLogLogCommands
ReactiveHyperLogLogCommands hyperLogLogCommands()- Returns:
- never null.
-
pubSubCommands
-
scriptingCommands
-
serverCommands
-
streamCommands
-
ping
-