T - public interface ReactiveRedisSessionCallback<K,V,T>
ReactiveRedisConnection avoiding connection
allocation overhead upon each Template API method call. Allows to execute any number of operations on a single
ReactiveRedisConnection, using any type and number of commands.
This is particularly useful for issuing multiple calls on the same connection.
ReactiveRedisOperations.executeInSession(ReactiveRedisSessionCallback)| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<T> |
doWithOperations(ReactiveRedisOperations<K,V> operations)
Gets called by
ReactiveRedisOperations.executeInSession(ReactiveRedisSessionCallback) with an active Redis
connection. |
org.reactivestreams.Publisher<T> doWithOperations(ReactiveRedisOperations<K,V> operations) throws DataAccessException
ReactiveRedisOperations.executeInSession(ReactiveRedisSessionCallback) with an active Redis
connection. Does not need to care about activating or closing the ReactiveRedisConnection.
Allows for returning a result object created within the callback, i.e. a domain object or a collection of domain objects.
operations - template associated with a connection.Publisher.DataAccessException - in case of custom exceptions.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.