[Mulgara-svn] r1169 - trunk/src/jar/util-xa/java/org/mulgara/store/xa
pag at mulgara.org
pag at mulgara.org
Sat Aug 23 02:02:10 UTC 2008
Author: pag
Date: 2008-08-22 19:02:09 -0700 (Fri, 22 Aug 2008)
New Revision: 1169
Modified:
trunk/src/jar/util-xa/java/org/mulgara/store/xa/AVLFile.java
Log:
Exposes the current usage of a phase to those objects that are not holding tokens directly, even though they reference the phase
Modified: trunk/src/jar/util-xa/java/org/mulgara/store/xa/AVLFile.java
===================================================================
--- trunk/src/jar/util-xa/java/org/mulgara/store/xa/AVLFile.java 2008-08-23 02:01:08 UTC (rev 1168)
+++ trunk/src/jar/util-xa/java/org/mulgara/store/xa/AVLFile.java 2008-08-23 02:02:09 UTC (rev 1169)
@@ -276,7 +276,17 @@
currentPhase = this;
}
+
/**
+ * Indicates if there are any remaining references to the current phase.
+ *
+ * @return <code>true</code> if the phase on the free list is still being referenced.
+ */
+ public boolean isInUse() {
+ return avlBlockFilePhase.isInUse();
+ }
+
+ /**
* Retrieve the number of AVL nodes in this phase.
*
* @return The number of AVL nodes in the tree.
More information about the Mulgara-svn
mailing list