jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1365567 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionDelegate.java
Date Wed, 25 Jul 2012 13:18:39 GMT
Author: mduerig
Date: Wed Jul 25 13:18:39 2012
New Revision: 1365567

URL: http://svn.apache.org/viewvc?rev=1365567&view=rev
Log:
OAK-156  Observation events need Session refresh
minor: rename internal method

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionDelegate.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionDelegate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionDelegate.java?rev=1365567&r1=1365566&r2=1365567&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionDelegate.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionDelegate.java
Wed Jul 25 13:18:39 2012
@@ -107,7 +107,7 @@ public class SessionDelegate {
     public <T> T perform(SessionOperation<T> sessionOperation) throws RepositoryException
{
         try {
             sessionOpCount++;
-            if (refreshNeeded()) {
+            if (needsRefresh()) {
                 refresh(true);
             }
             return sessionOperation.perform();
@@ -117,7 +117,7 @@ public class SessionDelegate {
         }
     }
 
-    private boolean refreshNeeded() {
+    private boolean needsRefresh() {
         // Refresh is needed only for non re-entrant session operations and only if
         // observation events have actually been delivered
         return sessionOpCount <= 1 && observationManager != null && observationManager.hasEvents();



Mime
View raw message