Skip to content

Commit 6b08f43

Browse files
author
tramchamploo
committed
Adding support for jedis
1 parent 8a46dbc commit 6b08f43

File tree

11 files changed

+2455
-5
lines changed

11 files changed

+2455
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package io.bufferslayer;
22

3-
import com.google.common.collect.ImmutableList;
4-
import com.google.common.collect.ImmutableList.Builder;
3+
import java.util.ArrayList;
54
import java.util.List;
65
import org.jdeferred.multiple.MultipleResults;
76
import org.jdeferred.multiple.OneResult;
@@ -12,11 +11,11 @@
1211
class DeferredUtil {
1312

1413
static List<Object> toResults(MultipleResults mr) {
15-
Builder<Object> builder = ImmutableList.builder();
14+
ArrayList<Object> result = new ArrayList<>();
1615
for (OneResult next : mr) {
1716
List<Object> batchResult = (List<Object>) next.getResult();
18-
builder.addAll(batchResult);
17+
result.addAll(batchResult);
1918
}
20-
return builder.build();
19+
return result;
2120
}
2221
}

circle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
machine:
22
java:
33
version: oraclejdk8
4+
services:
5+
- redis
46

57
dependencies:
68
override:

jedis/pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>parent</artifactId>
7+
<groupId>io.bufferslayer</groupId>
8+
<version>1.0.3-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>buffer-jedis</artifactId>
13+
14+
<dependencies>
15+
<dependency>
16+
<groupId>${project.groupId}</groupId>
17+
<artifactId>core</artifactId>
18+
</dependency>
19+
20+
<dependency>
21+
<groupId>${project.groupId}</groupId>
22+
<artifactId>boundedqueue</artifactId>
23+
</dependency>
24+
25+
<dependency>
26+
<groupId>redis.clients</groupId>
27+
<artifactId>jedis</artifactId>
28+
<version>2.9.0</version>
29+
</dependency>
30+
31+
<dependency>
32+
<groupId>org.mockito</groupId>
33+
<artifactId>mockito-core</artifactId>
34+
<scope>test</scope>
35+
</dependency>
36+
</dependencies>
37+
38+
</project>

0 commit comments

Comments
 (0)