james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject james-project git commit: JAMES-2537 Read CassandraMailQueueViewConfiguration from properties
Date Fri, 23 Nov 2018 02:44:31 GMT
Repository: james-project
Updated Branches:
  refs/heads/master a966c5e7e -> c21204b87


JAMES-2537 Read CassandraMailQueueViewConfiguration from properties


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

Branch: refs/heads/master
Commit: c21204b87a2af4927d283db9971217524a316ec4
Parents: a966c5e
Author: Benoit Tellier <btellier@linagora.com>
Authored: Thu Nov 22 14:13:05 2018 +0700
Committer: Benoit Tellier <btellier@linagora.com>
Committed: Fri Nov 23 09:44:03 2018 +0700

----------------------------------------------------------------------
 .../configuration/CassandraMailQueueViewConfiguration.java  | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/c21204b8/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/configuration/CassandraMailQueueViewConfiguration.java
----------------------------------------------------------------------
diff --git a/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/configuration/CassandraMailQueueViewConfiguration.java
b/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/configuration/CassandraMailQueueViewConfiguration.java
index 14d08c7..9750d34 100644
--- a/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/configuration/CassandraMailQueueViewConfiguration.java
+++ b/server/queue/queue-rabbitmq/src/main/java/org/apache/james/queue/rabbitmq/view/cassandra/configuration/CassandraMailQueueViewConfiguration.java
@@ -72,10 +72,11 @@ public class CassandraMailQueueViewConfiguration {
         return bucketCount -> updateBrowseStartPace -> sliceWindow -> new Builder.ReadyToBuild(bucketCount,
updateBrowseStartPace, sliceWindow);
     }
 
-    public static int DEFAULT_BUCKET_COUNT = 1;
-    public static Duration DEFAULT_SLICE_WINDOW = Duration.ofHours(1);
-    public static int DEFAULT_UPDATE_BROWSE_START_PACE = 1000;
-    public static CassandraMailQueueViewConfiguration DEFAULT = builder()
+    private static final int DEFAULT_BUCKET_COUNT = 1;
+    private static final Duration DEFAULT_SLICE_WINDOW = Duration.ofHours(1);
+    private static final int DEFAULT_UPDATE_BROWSE_START_PACE = 1000;
+
+    public static final CassandraMailQueueViewConfiguration DEFAULT = builder()
         .bucketCount(DEFAULT_BUCKET_COUNT)
         .updateBrowseStartPace(DEFAULT_UPDATE_BROWSE_START_PACE)
         .sliceWindow(DEFAULT_SLICE_WINDOW)


---------------------------------------------------------------------
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