jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chet...@apache.org
Subject svn commit: r1560664 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Document.java
Date Thu, 23 Jan 2014 12:34:16 GMT
Author: chetanm
Date: Thu Jan 23 12:34:16 2014
New Revision: 1560664

URL: http://svn.apache.org/r1560664
Log:
OAK-891 - Use DirectMemory as Level 2/Offheap cache

Adding isSealed to determine if document is sealed or not

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Document.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Document.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Document.java?rev=1560664&r1=1560663&r2=1560664&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Document.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/mongomk/Document.java
Thu Jan 23 12:34:16 2014
@@ -125,6 +125,14 @@ public class Document implements CacheVa
     }
 
     /**
+     * Determines if this document is sealed or not
+     * @return true if document is sealed.
+     */
+    public boolean isSealed(){
+        return sealed.get();
+    }
+
+    /**
      * Performs a deep copy of the data within this document to the given target.
      *
      * @param target the target document.



Mime
View raw message