You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2021/08/06 03:24:15 UTC
[james-project] branch master updated: JAMES-3601 Bind
ContentStartDAO as a singleton
This is an automated email from the ASF dual-hosted git repository.
rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
The following commit(s) were added to refs/heads/master by this push:
new c9c0472 JAMES-3601 Bind ContentStartDAO as a singleton
c9c0472 is described below
commit c9c04725c99f25e1e1a510adf49e31149b390dbe
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Wed Aug 4 21:58:53 2021 +0700
JAMES-3601 Bind ContentStartDAO as a singleton
This avoids re-preparing queries
---
.../java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java b/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java
index a833ef2..d7adf09 100644
--- a/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java
+++ b/server/container/guice/queue/rabbitmq/src/main/java/org/apache/james/modules/queue/rabbitmq/RabbitMQModule.java
@@ -51,6 +51,7 @@ import org.apache.james.queue.rabbitmq.view.cassandra.CassandraMailQueueMailStor
import org.apache.james.queue.rabbitmq.view.cassandra.CassandraMailQueueView;
import org.apache.james.queue.rabbitmq.view.cassandra.CassandraMailQueueViewModule;
import org.apache.james.queue.rabbitmq.view.cassandra.CassandraMailQueueViewStartUpCheck;
+import org.apache.james.queue.rabbitmq.view.cassandra.ContentStartDAO;
import org.apache.james.queue.rabbitmq.view.cassandra.DeletedMailsDAO;
import org.apache.james.queue.rabbitmq.view.cassandra.EnqueuedMailsDAO;
import org.apache.james.queue.rabbitmq.view.cassandra.configuration.CassandraMailQueueViewConfiguration;
@@ -87,6 +88,7 @@ public class RabbitMQModule extends AbstractModule {
bind(CassandraMailQueueBrowser.class).in(Scopes.SINGLETON);
bind(CassandraMailQueueMailDelete.class).in(Scopes.SINGLETON);
bind(CassandraMailQueueMailStore.class).in(Scopes.SINGLETON);
+ bind(ContentStartDAO.class).in(Scopes.SINGLETON);
bind(SimpleConnectionPool.class).in(Scopes.SINGLETON);
Multibinder<CassandraModule> cassandraModuleBinder = Multibinder.newSetBinder(binder(), CassandraModule.class);
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org