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()reactor.core.publisher.Mono<Void>Asynchronously close the connection and release associated resources.GetReactiveHashCommands.GetReactiveKeyCommands.GetReactiveListCommands.reactor.core.publisher.Mono<String>ping()Test connection.GetReactiveSetCommands.GetReactiveZSetCommands. 
- 
Method Details
- 
close
default void close()- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable
 - 
closeLater
reactor.core.publisher.Mono<Void> closeLater()Asynchronously close the connection and release associated resources.- Returns:
 - the 
Monosignaling when done. 
 - 
keyCommands
ReactiveKeyCommands keyCommands()GetReactiveKeyCommands.- Returns:
 - never null.
 
 - 
stringCommands
ReactiveStringCommands stringCommands()- Returns:
 - never null.
 
 - 
numberCommands
ReactiveNumberCommands numberCommands()- Returns:
 - never null.
 
 - 
listCommands
ReactiveListCommands listCommands()GetReactiveListCommands.- Returns:
 - never null.
 
 - 
setCommands
ReactiveSetCommands setCommands()GetReactiveSetCommands.- Returns:
 - never null.
 
 - 
zSetCommands
ReactiveZSetCommands zSetCommands()GetReactiveZSetCommands.- Returns:
 - never null.
 
 - 
hashCommands
ReactiveHashCommands hashCommands()GetReactiveHashCommands.- Returns:
 - never null.
 
 - 
geoCommands
ReactiveGeoCommands geoCommands()- Returns:
 - never null.
 
 - 
hyperLogLogCommands
ReactiveHyperLogLogCommands hyperLogLogCommands()- Returns:
 - never null.
 
 - 
pubSubCommands
ReactivePubSubCommands pubSubCommands()- Returns:
 - never null.
 - Since:
 - 2.1
 
 - 
scriptingCommands
ReactiveScriptingCommands scriptingCommands()- Returns:
 - never null.
 
 - 
serverCommands
ReactiveServerCommands serverCommands()- Returns:
 - never null.
 
 - 
streamCommands
ReactiveStreamCommands streamCommands()- Returns:
 - never null.
 - Since:
 - 2.2
 
 - 
ping
reactor.core.publisher.Mono<String> ping()Test connection.- Returns:
 Monowrapping server response message - usually PONG.- See Also:
 
 
 -