james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matth...@apache.org
Subject [08/15] james-project git commit: JAMES-2408 DeleteByQueryPerformer: remove uneeded constructor
Date Wed, 06 Jun 2018 07:01:02 GMT
JAMES-2408 DeleteByQueryPerformer: remove uneeded constructor


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/6033c3f7
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/6033c3f7
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/6033c3f7

Branch: refs/heads/master
Commit: 6033c3f761f4bb45ac3e66866b63d226318613cb
Parents: 7ce70f5
Author: benwa <btellier@linagora.com>
Authored: Tue Jun 5 14:40:58 2018 +0700
Committer: Matthieu Baechler <matthieu@apache.org>
Committed: Wed Jun 6 08:58:57 2018 +0200

----------------------------------------------------------------------
 .../org/apache/james/backends/es/DeleteByQueryPerformer.java   | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/6033c3f7/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/DeleteByQueryPerformer.java
----------------------------------------------------------------------
diff --git a/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/DeleteByQueryPerformer.java
b/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/DeleteByQueryPerformer.java
index b5923aa..5fbd7b3 100644
--- a/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/DeleteByQueryPerformer.java
+++ b/backends-common/elasticsearch/src/main/java/org/apache/james/backends/es/DeleteByQueryPerformer.java
@@ -35,7 +35,6 @@ import org.elasticsearch.search.SearchHit;
 import com.google.common.annotations.VisibleForTesting;
 
 public class DeleteByQueryPerformer {
-    public static final int DEFAULT_BATCH_SIZE = 100;
     public static final TimeValue TIMEOUT = new TimeValue(60000);
 
     private final Client client;
@@ -44,11 +43,6 @@ public class DeleteByQueryPerformer {
     private final AliasName aliasName;
     private final TypeName typeName;
 
-    public DeleteByQueryPerformer(Client client, ExecutorService executor,
-                                  AliasName aliasName, TypeName typeName) {
-        this(client, executor, DEFAULT_BATCH_SIZE, aliasName, typeName);
-    }
-
     @VisibleForTesting
     public DeleteByQueryPerformer(Client client, ExecutorService executor, int batchSize,
AliasName aliasName, TypeName typeName) {
         this.client = client;


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message