diff --git a/pom.xml b/pom.xml
index 22dd001..61e879b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.redislabsjredisgraph
- 2.5.0-SNAPSHOT
+ 2.5.1-SNAPSHOTJRedisGraphOfficial client for Redis-Graph
diff --git a/src/main/java/com/redislabs/redisgraph/RedisGraphPipeline.java b/src/main/java/com/redislabs/redisgraph/RedisGraphPipeline.java
index c2806c8..8416f66 100644
--- a/src/main/java/com/redislabs/redisgraph/RedisGraphPipeline.java
+++ b/src/main/java/com/redislabs/redisgraph/RedisGraphPipeline.java
@@ -57,17 +57,6 @@ public interface RedisGraphPipeline extends
*/
Response readOnlyQuery(String graphId, String query, long timeout);
- /**
- * Execute a Cypher query with arguments
- * @param graphId a graph to perform the query on
- * @param query Cypher query
- * @param args
- * @return a response which builds the result set with the query answer.
- * @deprecated use {@link #query(String, String, Map)} instead.
- */
- @Deprecated
- Response query(String graphId, String query, Object ...args);
-
/**
* Executes a cypher query with parameters.
* @param graphId a graph to perform the query on.
@@ -155,4 +144,17 @@ public interface RedisGraphPipeline extends
* commands you execute.
*/
public void sync();
+
+
+ /**
+ * Blocks until all the previous write commands are successfully transferred and acknowledged by
+ * at least the specified number of replicas. If the timeout, specified in milliseconds, is
+ * reached, the command returns even if the specified number of replicas were not yet reached.
+ * @param replicas successfully transferred and acknowledged by at least the specified number of
+ * replicas
+ * @param timeout the time to block in milliseconds, a timeout of 0 means to block forever
+ * @return the number of replicas reached by all the writes performed in the context of the
+ * current connection
+ */
+ public Response waitReplicas(int replicas, long timeout);
}
diff --git a/src/main/java/com/redislabs/redisgraph/impl/api/RedisGraphPipeline.java b/src/main/java/com/redislabs/redisgraph/impl/api/RedisGraphPipeline.java
index 71deb1a..5ddbf09 100644
--- a/src/main/java/com/redislabs/redisgraph/impl/api/RedisGraphPipeline.java
+++ b/src/main/java/com/redislabs/redisgraph/impl/api/RedisGraphPipeline.java
@@ -102,28 +102,6 @@ public ResultSet build(Object o) {
});
}
- /**
- * Execute a Cypher query with arguments
- *
- * @param graphId a graph to perform the query on
- * @param query Cypher query
- * @param args
- * @return response with a result set
- * @deprecated use {@link #query(String, String, Map)} instead.
- */
- @Deprecated
- @Override
- public Response query(String graphId, String query, Object ...args){
- String preparedQuery = Utils.prepareQuery(query, args);
- client.sendCommand(RedisGraphCommand.QUERY, graphId, preparedQuery, Utils.COMPACT_STRING);
- return getResponse(new Builder() {
- @Override
- public ResultSet build(Object o) {
- return new ResultSetImpl((List