7
7
import java .util .Queue ;
8
8
9
9
import redis .clients .jedis .commands .DatabasePipelineCommands ;
10
- import redis .clients .jedis .commands .PipelineBinaryCommands ;
11
- import redis .clients .jedis .commands .PipelineCommands ;
12
- import redis .clients .jedis .commands .RedisModulePipelineCommands ;
13
10
import redis .clients .jedis .exceptions .JedisDataException ;
14
11
import redis .clients .jedis .graph .GraphCommandObjects ;
15
12
import redis .clients .jedis .params .*;
16
13
import redis .clients .jedis .util .KeyValue ;
17
14
18
- public class Pipeline extends PipelineBase implements PipelineCommands , PipelineBinaryCommands ,
19
- DatabasePipelineCommands , RedisModulePipelineCommands , Closeable {
15
+ public class Pipeline extends PipelineBase implements DatabasePipelineCommands , Closeable {
20
16
21
17
private final Queue <Response <?>> pipelinedResponses = new LinkedList <>();
22
18
protected final Connection connection ;
@@ -66,8 +62,8 @@ public void close() {
66
62
public void sync () {
67
63
if (!hasPipelinedResponse ()) return ;
68
64
List <Object > unformatted = connection .getMany (pipelinedResponses .size ());
69
- for (Object o : unformatted ) {
70
- pipelinedResponses .poll ().set (o );
65
+ for (Object rawReply : unformatted ) {
66
+ pipelinedResponses .poll ().set (rawReply );
71
67
}
72
68
}
73
69
@@ -81,10 +77,10 @@ public List<Object> syncAndReturnAll() {
81
77
if (hasPipelinedResponse ()) {
82
78
List <Object > unformatted = connection .getMany (pipelinedResponses .size ());
83
79
List <Object > formatted = new ArrayList <>();
84
- for (Object o : unformatted ) {
80
+ for (Object rawReply : unformatted ) {
85
81
try {
86
82
Response <?> response = pipelinedResponses .poll ();
87
- response .set (o );
83
+ response .set (rawReply );
88
84
formatted .add (response .get ());
89
85
} catch (JedisDataException e ) {
90
86
formatted .add (e );
0 commit comments