Skip to content

Commit cb20f8a

Browse files
Update license header and javadoc.
Original Pull Request: #2129
1 parent fcf92a2 commit cb20f8a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: src/main/java/org/springframework/data/redis/core/ReactiveRedisSessionCallback.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2021 the original author or authors.
2+
* Copyright 2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
2323
* Generic callback interface for code that wants to use the same {@link ReactiveRedisConnection} avoiding connection
2424
* allocation overhead upon each Template API method call. Allows to execute any number of operations on a single
2525
* {@link ReactiveRedisConnection}, using any type and number of commands.
26-
* <p>
26+
* <p />
2727
* This is particularly useful for issuing multiple calls on the same connection.
2828
*
2929
* @param <T>
@@ -36,13 +36,13 @@ public interface ReactiveRedisSessionCallback<K, V, T> {
3636
/**
3737
* Gets called by {@link ReactiveRedisOperations#executeInSession(ReactiveRedisSessionCallback)} with an active Redis
3838
* connection. Does not need to care about activating or closing the {@link ReactiveRedisConnection}.
39-
* <p>
39+
* <p />
4040
* Allows for returning a result object created within the callback, i.e. a domain object or a collection of domain
4141
* objects.
4242
*
4343
* @param operations template associated with a connection.
44-
* @return a result object publisher
45-
* @throws DataAccessException in case of custom exceptions
44+
* @return a result object {@link Publisher}.
45+
* @throws DataAccessException in case of custom exceptions.
4646
*/
4747
Publisher<T> doWithOperations(ReactiveRedisOperations<K, V> operations) throws DataAccessException;
4848
}

Diff for: src/main/java/org/springframework/data/redis/core/ReactiveRedisTemplate.java

+2
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public <T> Flux<T> createFlux(ReactiveRedisCallback<T> callback) {
180180
*
181181
* @param callback must not be {@literal null}
182182
* @return a {@link Flux} wrapping the {@link ReactiveRedisCallback}.
183+
* @since 2.6
183184
*/
184185
<T> Flux<T> doCreateFlux(ReactiveRedisCallback<T> callback) {
185186

@@ -209,6 +210,7 @@ public <T> Mono<T> createMono(ReactiveRedisCallback<T> callback) {
209210
*
210211
* @param callback must not be {@literal null}
211212
* @return a {@link Mono} wrapping the {@link ReactiveRedisCallback}.
213+
* @since 2.6
212214
*/
213215
<T> Mono<T> doCreateMono(ReactiveRedisCallback<T> callback) {
214216

0 commit comments

Comments
 (0)