Skip to content

Commit 178b3e1

Browse files
author
Mark
committed
added ArangoUtil for manually de-/serialization
1 parent 42def12 commit 178b3e1

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
v4.1.0 (2016-10-xx)
22
---------------------------
33
* changed VelocyStream communication (send protocol header)
4-
* added VeloyPack serialization support for java.time.Instant, LocalDate, LocalDateTime
4+
* added VeloyPack serialization support for java.time.Instant, LocalDate, LocalDateTime
5+
* added ArangoUtil for manually de-/serialization

src/main/java/com/arangodb/internal/ArangoExecutorAsync.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
import java.util.concurrent.CompletableFuture;
2525

2626
import com.arangodb.ArangoDBException;
27-
import com.arangodb.internal.ArangoExecutor;
28-
import com.arangodb.internal.CollectionCache;
29-
import com.arangodb.internal.DocumentCache;
3027
import com.arangodb.internal.velocystream.Communication;
3128
import com.arangodb.internal.velocystream.ConnectionAsync;
3229
import com.arangodb.velocypack.VPack;
@@ -48,12 +45,12 @@ public ArangoExecutorAsync(final Communication<CompletableFuture<Response>, Conn
4845
}
4946

5047
public <T> CompletableFuture<T> execute(final Request request, final Type type) {
51-
return execute(request, (response) -> createResult(vpacker, vpackParser, type, response));
48+
return execute(request, (response) -> createResult(type, response));
5249
}
5350

5451
public <T> CompletableFuture<T> execute(final Request request, final ResponseDeserializer<T> responseDeserializer) {
5552
final CompletableFuture<T> result = new CompletableFuture<>();
56-
communication.execute(request).whenComplete((response, ex) -> {
53+
communication().execute(request).whenComplete((response, ex) -> {
5754
if (response != null) {
5855
try {
5956
result.complete(responseDeserializer.deserialize(response));

0 commit comments

Comments
 (0)