JAMES-2612 Introduce a guice probe for mailbox configuration
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/8ac78fbd Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/8ac78fbd Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/8ac78fbd Branch: refs/heads/master Commit: 8ac78fbd6a1bdd070e20cad7a1883c9b5d21cdd0 Parents: 2cf3e69 Author: Antoine Duprat <adup...@linagora.com> Authored: Wed Nov 28 12:15:08 2018 +0100 Committer: Raphael Ouazana <raphael.ouaz...@linagora.com> Committed: Mon Dec 3 11:16:29 2018 +0100 ---------------------------------------------------------------------- .../james/modules/ConfigurationProbe.java | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/8ac78fbd/server/container/guice/mailbox/src/main/java/org/apache/james/modules/ConfigurationProbe.java ---------------------------------------------------------------------- diff --git a/server/container/guice/mailbox/src/main/java/org/apache/james/modules/ConfigurationProbe.java b/server/container/guice/mailbox/src/main/java/org/apache/james/modules/ConfigurationProbe.java new file mode 100644 index 0000000..de934c3 --- /dev/null +++ b/server/container/guice/mailbox/src/main/java/org/apache/james/modules/ConfigurationProbe.java @@ -0,0 +1,43 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.james.modules; + +import javax.inject.Inject; + +import org.apache.james.mailbox.store.StoreMailboxManager; +import org.apache.james.utils.GuiceProbe; + +public class ConfigurationProbe implements GuiceProbe { + + private final StoreMailboxManager storeMailboxManager; + + @Inject + private ConfigurationProbe(StoreMailboxManager storeMailboxManager) { + this.storeMailboxManager = storeMailboxManager; + } + + public int getMoveBatchSize() { + return storeMailboxManager.getMoveBatchSize(); + } + + public int getCopyBatchSize() { + return storeMailboxManager.getCopyBatchSize(); + } +} --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org