fixing Issue 188 - Pipline.syncAndReturnAll changes
This commit is contained in:
@@ -6,6 +6,7 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import redis.clients.jedis.BinaryClient.LIST_POSITION;
|
import redis.clients.jedis.BinaryClient.LIST_POSITION;
|
||||||
|
import redis.clients.jedis.exceptions.JedisDataException;
|
||||||
|
|
||||||
public class Pipeline extends Queable {
|
public class Pipeline extends Queable {
|
||||||
private Client client;
|
private Client client;
|
||||||
@@ -39,7 +40,11 @@ public class Pipeline extends Queable {
|
|||||||
List<Object> unformatted = client.getAll();
|
List<Object> unformatted = client.getAll();
|
||||||
List<Object> formatted = new ArrayList<Object>();
|
List<Object> formatted = new ArrayList<Object>();
|
||||||
for (Object o : unformatted) {
|
for (Object o : unformatted) {
|
||||||
|
try{
|
||||||
formatted.add(generateResponse(o).get());
|
formatted.add(generateResponse(o).get());
|
||||||
|
}catch(JedisDataException e){
|
||||||
|
formatted.add(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return formatted;
|
return formatted;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user