@@ -187,7 +187,7 @@ private static RedisConnection createConnectionProxy(RedisConnection connection,
187
187
*
188
188
* @param conn the Redis connection to close.
189
189
* @param factory the Redis factory that the connection was created with.
190
- * @deprecated since 2.1.9 , use {@link #releaseConnection(RedisConnection, RedisConnectionFactory, boolean)}
190
+ * @deprecated since 2.1.10 , use {@link #releaseConnection(RedisConnection, RedisConnectionFactory, boolean)} instead.
191
191
*/
192
192
@ Deprecated
193
193
public static void releaseConnection (@ Nullable RedisConnection conn , RedisConnectionFactory factory ) {
@@ -200,11 +200,11 @@ public static void releaseConnection(@Nullable RedisConnection conn, RedisConnec
200
200
*
201
201
* @param conn the Redis connection to close.
202
202
* @param factory the Redis factory that the connection was created with.
203
- * @param enableTransactionSupport whether transaction support is enabled.
203
+ * @param transactionSupport whether transaction support is enabled.
204
204
* @since 2.1.9
205
205
*/
206
206
public static void releaseConnection (@ Nullable RedisConnection conn , RedisConnectionFactory factory ,
207
- boolean enableTransactionSupport ) {
207
+ boolean transactionSupport ) {
208
208
209
209
if (conn == null ) {
210
210
return ;
@@ -223,23 +223,23 @@ public static void releaseConnection(@Nullable RedisConnection conn, RedisConnec
223
223
224
224
// release transactional/read-only and non-transactional/non-bound connections.
225
225
// transactional connections for read-only transactions get no synchronizer registered
226
- if (enableTransactionSupport && TransactionSynchronizationManager .isCurrentTransactionReadOnly ()) {
226
+ if (transactionSupport && TransactionSynchronizationManager .isCurrentTransactionReadOnly ()) {
227
227
if (log .isDebugEnabled ()) {
228
- log .debug ("Unbinding Redis Connection" );
228
+ log .debug ("Unbinding Redis Connection. " );
229
229
}
230
230
unbindConnection (factory );
231
231
} else {
232
232
233
233
// Not participating in transaction management.
234
234
// Connection could have been attached via session callback.
235
235
if (log .isDebugEnabled ()) {
236
- log .debug ("Leaving bound Redis Connection attached" );
236
+ log .debug ("Leaving bound Redis Connection attached. " );
237
237
}
238
238
}
239
239
240
240
} else {
241
241
if (log .isDebugEnabled ()) {
242
- log .debug ("Closing Redis Connection" );
242
+ log .debug ("Closing Redis Connection. " );
243
243
}
244
244
conn .close ();
245
245
}
0 commit comments