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 classReactiveRedisConnection.CommandResponseimplementation forByteBufferresponses for absent keys.static classReactiveRedisConnection.CommandResponseimplementation forBooleanresponses.static classReactiveRedisConnection.CommandResponseimplementation forByteBufferresponses.static interfaceBase interface for Redis commands executed with a reactive infrastructure.static classBase class for command responses.static classReactiveRedisConnection.Commandfor key-bound operations.static classstatic classReactiveRedisConnection.CommandResponseimplementation forListresponses.static classReactiveRedisConnection.NumericResponse<I, O extends Number>ReactiveRedisConnection.CommandResponseimplementation fornumericresponses.static class -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Asynchronously close the connection and release associated resources.GetReactiveHashCommands.GetReactiveKeyCommands.GetReactiveListCommands.ping()Test connection.GetReactiveSetCommands.GetReactiveZSetCommands.
-
Method Details
-
close
default void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
closeLater
-
keyCommands
-
stringCommands
-
numberCommands
-
listCommands
-
setCommands
-
zSetCommands
-
hashCommands
-
geoCommands
-
hyperLogLogCommands
ReactiveHyperLogLogCommands hyperLogLogCommands()- Returns:
- never null.
-
pubSubCommands
-
scriptingCommands
-
serverCommands
-
streamCommands
-
ping
-