usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject usergrid git commit: Ensure the EntityIndexFactory is a singleton so the cache is actually useful.
Date Tue, 12 Jul 2016 22:48:26 GMT
Repository: usergrid
Updated Branches:
  refs/heads/release-2.1.1 4f8183ff1 -> 8faad5bdc


Ensure the EntityIndexFactory is a singleton so the cache is actually useful.


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/8faad5bd
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/8faad5bd
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/8faad5bd

Branch: refs/heads/release-2.1.1
Commit: 8faad5bdcbee9012f936cea6e8ef673cc5d07d54
Parents: 4f8183f
Author: Michael Russo <mrusso@apigee.com>
Authored: Tue Jul 12 15:48:32 2016 -0700
Committer: Michael Russo <mrusso@apigee.com>
Committed: Tue Jul 12 15:48:32 2016 -0700

----------------------------------------------------------------------
 .../usergrid/persistence/index/impl/EsEntityIndexFactoryImpl.java  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/8faad5bd/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexFactoryImpl.java
----------------------------------------------------------------------
diff --git a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexFactoryImpl.java
b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexFactoryImpl.java
index f4e89ad..175b08a 100644
--- a/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexFactoryImpl.java
+++ b/stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/impl/EsEntityIndexFactoryImpl.java
@@ -21,6 +21,7 @@ package org.apache.usergrid.persistence.index.impl;
 
 import java.util.concurrent.ExecutionException;
 
+import com.google.inject.Singleton;
 import org.apache.usergrid.persistence.core.metrics.MetricsFactory;
 import org.apache.usergrid.persistence.index.*;
 
@@ -32,6 +33,7 @@ import com.google.inject.Inject;
 /**
  * Get index from factory, adds caching
  */
+@Singleton
 public class EsEntityIndexFactoryImpl implements EntityIndexFactory{
 
     private final IndexFig config;


Mime
View raw message