usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject [1/2] usergrid git commit: [USERGRID-1341] Fix cache expiration type for ApplicationQueueManagerCache.
Date Tue, 21 Mar 2017 15:48:43 GMT
Repository: usergrid
Updated Branches:
  refs/heads/master 104f64eb4 -> 9141f8dc2


[USERGRID-1341] Fix cache expiration type for ApplicationQueueManagerCache.


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

Branch: refs/heads/master
Commit: f6aed13d06dc26644474d45560ea27e8b9140f96
Parents: 761aa44
Author: Michael Russo <russomichael@google.com>
Authored: Tue Mar 21 08:40:53 2017 -0700
Committer: Michael Russo <russomichael@google.com>
Committed: Tue Mar 21 08:40:53 2017 -0700

----------------------------------------------------------------------
 .../services/notifications/ApplicationQueueManagerCache.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/f6aed13d/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManagerCache.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManagerCache.java
b/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManagerCache.java
index 3b2eff3..8fbe69d 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManagerCache.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/ApplicationQueueManagerCache.java
@@ -62,7 +62,7 @@ public class ApplicationQueueManagerCache{
 
         this.cache = CacheBuilder.newBuilder()
             .maximumSize(Math.min(1000,configuredMaxSize))
-            .expireAfterWrite(ttl, TimeUnit.MINUTES)
+            .expireAfterAccess(ttl, TimeUnit.MINUTES)
             .removalListener(new RemovalListener<UUID, ApplicationQueueManager>() {
                 @Override
                 public void onRemoval(


Mime
View raw message