jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r994953 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
Date Wed, 08 Sep 2010 09:55:43 GMT
Author: jukka
Date: Wed Sep  8 09:55:43 2010
New Revision: 994953

URL: http://svn.apache.org/viewvc?rev=994953&view=rev
Log:
JCR-2741: Improved logging for session operations

Improved javadocs

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java?rev=994953&r1=994952&r2=994953&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionState.java
Wed Sep  8 09:55:43 2010
@@ -105,6 +105,8 @@ public class SessionState {
     /**
      * Performs the given operation within a synchronized block.
      *
+     * @param operation session operation
+     * @return the return value of the executed operation
      * @throws RepositoryException if the operation fails or
      *                             if the session has already been closed
      */
@@ -133,6 +135,16 @@ public class SessionState {
         }
     }
 
+    /**
+     * The actual implementation of the {@link #perform(SessionOperation)}
+     * method, extracted since the public method is already filled with
+     * somewhat complex logging and timing logic.
+     *
+     * @param operation session operation
+     * @return the return value of the executed operation
+     * @throws RepositoryException if the operation fails or
+     *                             if the session has already been closed
+     */
     private <T> T internalPerform(SessionOperation<T> operation)
             throws RepositoryException {
         if (!lock.tryLock()) {



Mime
View raw message