@@ -82,7 +82,7 @@ <R> R just(ConnectionFunction0<R> function) {
82
82
83
83
Assert .notNull (function , "ConnectionFunction must not be null" );
84
84
85
- return synchronizer .invoke (function ::apply , it -> {
85
+ return synchronizer .invoke (function ::apply , responseCommands -> {
86
86
throw new InvalidDataAccessApiUsageException ("Operation not supported by Jedis in pipelining/transaction mode" );
87
87
}, Converters .identityConverter (), () -> null );
88
88
}
@@ -115,7 +115,8 @@ <R, T1> R just(ConnectionFunction1<T1, R> function, PipelineFunction1<T1, R> pip
115
115
Assert .notNull (function , "ConnectionFunction must not be null" );
116
116
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
117
117
118
- return synchronizer .invoke (it -> function .apply (it , t1 ), it -> pipelineFunction .apply (it , t1 ));
118
+ return synchronizer .invoke (jedis -> function .apply (jedis , t1 ),
119
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 ));
119
120
}
120
121
121
122
/**
@@ -133,7 +134,8 @@ <R, T1, T2> R just(ConnectionFunction2<T1, T2, R> function, PipelineFunction2<T1
133
134
Assert .notNull (function , "ConnectionFunction must not be null" );
134
135
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
135
136
136
- return synchronizer .invoke (it -> function .apply (it , t1 , t2 ), it -> pipelineFunction .apply (it , t1 , t2 ));
137
+ return synchronizer .invoke (jedis -> function .apply (jedis , t1 , t2 ),
138
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 ));
137
139
}
138
140
139
141
/**
@@ -152,7 +154,8 @@ <R, T1, T2, T3> R just(ConnectionFunction3<T1, T2, T3, R> function, PipelineFunc
152
154
Assert .notNull (function , "ConnectionFunction must not be null" );
153
155
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
154
156
155
- return synchronizer .invoke (it -> function .apply (it , t1 , t2 , t3 ), it -> pipelineFunction .apply (it , t1 , t2 , t3 ));
157
+ return synchronizer .invoke (jedis -> function .apply (jedis , t1 , t2 , t3 ),
158
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 ));
156
159
}
157
160
158
161
/**
@@ -172,7 +175,7 @@ <R, T1, T2, T3, T4> R just(ConnectionFunction4<T1, T2, T3, T4, R> function,
172
175
Assert .notNull (function , "ConnectionFunction must not be null" );
173
176
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
174
177
175
- return synchronizer .invoke (it -> function .apply (it , t1 , t2 , t3 , t4 ),
178
+ return synchronizer .invoke (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 ),
176
179
it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 ));
177
180
}
178
181
@@ -194,7 +197,7 @@ <R, T1, T2, T3, T4, T5> R just(ConnectionFunction5<T1, T2, T3, T4, T5, R> functi
194
197
Assert .notNull (function , "ConnectionFunction must not be null" );
195
198
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
196
199
197
- return synchronizer .invoke (it -> function .apply (it , t1 , t2 , t3 , t4 , t5 ),
200
+ return synchronizer .invoke (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 , t5 ),
198
201
it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 , t5 ));
199
202
}
200
203
@@ -217,8 +220,8 @@ <R, T1, T2, T3, T4, T5, T6> R just(ConnectionFunction6<T1, T2, T3, T4, T5, T6, R
217
220
Assert .notNull (function , "ConnectionFunction must not be null" );
218
221
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
219
222
220
- return synchronizer .invoke (it -> function .apply (it , t1 , t2 , t3 , t4 , t5 , t6 ),
221
- it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 , t5 , t6 ));
223
+ return synchronizer .invoke (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 , t5 , t6 ),
224
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 , t4 , t5 , t6 ));
222
225
}
223
226
224
227
/**
@@ -265,7 +268,7 @@ <R, T1> SingleInvocationSpec<R> from(ConnectionFunction1<T1, R> function, Pipeli
265
268
Assert .notNull (function , "ConnectionFunction must not be null" );
266
269
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
267
270
268
- return from (it -> function .apply (it , t1 ), it -> pipelineFunction .apply (it , t1 ));
271
+ return from (jedis -> function .apply (jedis , t1 ), responseCommands -> pipelineFunction .apply (responseCommands , t1 ));
269
272
}
270
273
271
274
/**
@@ -283,7 +286,8 @@ <R, T1, T2> SingleInvocationSpec<R> from(ConnectionFunction2<T1, T2, R> function
283
286
Assert .notNull (function , "ConnectionFunction must not be null" );
284
287
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
285
288
286
- return from (it -> function .apply (it , t1 , t2 ), it -> pipelineFunction .apply (it , t1 , t2 ));
289
+ return from (jedis -> function .apply (jedis , t1 , t2 ),
290
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 ));
287
291
}
288
292
289
293
/**
@@ -302,7 +306,8 @@ <R, T1, T2, T3> SingleInvocationSpec<R> from(ConnectionFunction3<T1, T2, T3, R>
302
306
Assert .notNull (function , "ConnectionFunction must not be null" );
303
307
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
304
308
305
- return from (it -> function .apply (it , t1 , t2 , t3 ), it -> pipelineFunction .apply (it , t1 , t2 , t3 ));
309
+ return from (jedis -> function .apply (jedis , t1 , t2 , t3 ),
310
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 ));
306
311
}
307
312
308
313
/**
@@ -322,7 +327,8 @@ <R, T1, T2, T3, T4> SingleInvocationSpec<R> from(ConnectionFunction4<T1, T2, T3,
322
327
Assert .notNull (function , "ConnectionFunction must not be null" );
323
328
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
324
329
325
- return from (it -> function .apply (it , t1 , t2 , t3 , t4 ), it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 ));
330
+ return from (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 ),
331
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 , t4 ));
326
332
}
327
333
328
334
/**
@@ -343,7 +349,8 @@ <R, T1, T2, T3, T4, T5> SingleInvocationSpec<R> from(ConnectionFunction5<T1, T2,
343
349
Assert .notNull (function , "ConnectionFunction must not be null" );
344
350
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
345
351
346
- return from (it -> function .apply (it , t1 , t2 , t3 , t4 , t5 ), it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 , t5 ));
352
+ return from (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 , t5 ),
353
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 , t4 , t5 ));
347
354
}
348
355
349
356
/**
@@ -365,8 +372,8 @@ <R, T1, T2, T3, T4, T5, T6> SingleInvocationSpec<R> from(ConnectionFunction6<T1,
365
372
Assert .notNull (function , "ConnectionFunction must not be null" );
366
373
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
367
374
368
- return from (it -> function .apply (it , t1 , t2 , t3 , t4 , t5 , t6 ),
369
- it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 , t5 , t6 ));
375
+ return from (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 , t5 , t6 ),
376
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 , t4 , t5 , t6 ));
370
377
}
371
378
372
379
/**
@@ -414,7 +421,8 @@ <R extends Collection<E>, E, T1> ManyInvocationSpec<E> fromMany(ConnectionFuncti
414
421
Assert .notNull (function , "ConnectionFunction must not be null" );
415
422
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
416
423
417
- return fromMany (it -> function .apply (it , t1 ), it -> pipelineFunction .apply (it , t1 ));
424
+ return fromMany (jedis -> function .apply (jedis , t1 ),
425
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 ));
418
426
}
419
427
420
428
/**
@@ -432,7 +440,8 @@ <R extends Collection<E>, E, T1, T2> ManyInvocationSpec<E> fromMany(ConnectionFu
432
440
Assert .notNull (function , "ConnectionFunction must not be null" );
433
441
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
434
442
435
- return fromMany (it -> function .apply (it , t1 , t2 ), it -> pipelineFunction .apply (it , t1 , t2 ));
443
+ return fromMany (jedis -> function .apply (jedis , t1 , t2 ),
444
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 ));
436
445
}
437
446
438
447
/**
@@ -451,7 +460,8 @@ <R extends Collection<E>, E, T1, T2, T3> ManyInvocationSpec<E> fromMany(Connecti
451
460
Assert .notNull (function , "ConnectionFunction must not be null" );
452
461
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
453
462
454
- return fromMany (it -> function .apply (it , t1 , t2 , t3 ), it -> pipelineFunction .apply (it , t1 , t2 , t3 ));
463
+ return fromMany (jedis -> function .apply (jedis , t1 , t2 , t3 ),
464
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 ));
455
465
}
456
466
457
467
/**
@@ -472,7 +482,8 @@ <R extends Collection<E>, E, T1, T2, T3, T4> ManyInvocationSpec<E> fromMany(
472
482
Assert .notNull (function , "ConnectionFunction must not be null" );
473
483
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
474
484
475
- return fromMany (it -> function .apply (it , t1 , t2 , t3 , t4 ), it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 ));
485
+ return fromMany (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 ),
486
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 , t4 ));
476
487
}
477
488
478
489
/**
@@ -494,7 +505,8 @@ <R extends Collection<E>, E, T1, T2, T3, T4, T5> ManyInvocationSpec<E> fromMany(
494
505
Assert .notNull (function , "ConnectionFunction must not be null" );
495
506
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
496
507
497
- return fromMany (it -> function .apply (it , t1 , t2 , t3 , t4 , t5 ), it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 , t5 ));
508
+ return fromMany (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 , t5 ),
509
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 , t4 , t5 ));
498
510
}
499
511
500
512
/**
@@ -517,8 +529,8 @@ <R extends Collection<E>, E, T1, T2, T3, T4, T5, T6> ManyInvocationSpec<E> fromM
517
529
Assert .notNull (function , "ConnectionFunction must not be null" );
518
530
Assert .notNull (pipelineFunction , "PipelineFunction must not be null" );
519
531
520
- return fromMany (it -> function .apply (it , t1 , t2 , t3 , t4 , t5 , t6 ),
521
- it -> pipelineFunction .apply (it , t1 , t2 , t3 , t4 , t5 , t6 ));
532
+ return fromMany (jedis -> function .apply (jedis , t1 , t2 , t3 , t4 , t5 , t6 ),
533
+ responseCommands -> pipelineFunction .apply (responseCommands , t1 , t2 , t3 , t4 , t5 , t6 ));
522
534
}
523
535
524
536
/**
0 commit comments