You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ro...@apache.org on 2018/12/03 10:17:29 UTC

[07/10] james-project git commit: JAMES-2612 Return batch sizes in StoreMailboxManager

JAMES-2612 Return batch sizes in StoreMailboxManager


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

Branch: refs/heads/master
Commit: f01817f90147acdafd26a62427d7719a0e85d862
Parents: 793e595
Author: Antoine Duprat <ad...@linagora.com>
Authored: Wed Nov 28 13:59:17 2018 +0100
Committer: Raphael Ouazana <ra...@linagora.com>
Committed: Mon Dec 3 11:16:29 2018 +0100

----------------------------------------------------------------------
 .../org/apache/james/mailbox/store/StoreMailboxManager.java  | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/f01817f9/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
----------------------------------------------------------------------
diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
index 40885a6..7eb53d8 100644
--- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
+++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/StoreMailboxManager.java
@@ -191,10 +191,18 @@ public class StoreMailboxManager implements MailboxManager {
         this.copyBatcher = new MessageBatcher(batchSizes.getCopyBatchSize());
     }
 
+    public int getCopyBatchSize() {
+        return copyBatcher.getBatchSize();
+    }
+
     public void setMoveBatchSize(BatchSizes batchSizes) {
         this.moveBatcher = new MessageBatcher(batchSizes.getMoveBatchSize());
     }
 
+    public int getMoveBatchSize() {
+        return moveBatcher.getBatchSize();
+    }
+
     public void setBatchSizes(BatchSizes batchSizes) {
         this.batchSizes = batchSizes;
     }


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