[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Sat Nov 11 14:55:19 EST 2006
User: msurtani
Date: 06/11/11 14:55:19
Modified: src/org/jboss/cache TreeCache.java
Log:
JBCACHE-842 and JBCACHE-843
Revision Changes Path
1.266 +36 -1 JBossCache/src/org/jboss/cache/TreeCache.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TreeCache.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/TreeCache.java,v
retrieving revision 1.265
retrieving revision 1.266
diff -u -b -r1.265 -r1.266
--- TreeCache.java 10 Nov 2006 20:32:52 -0000 1.265
+++ TreeCache.java 11 Nov 2006 19:55:19 -0000 1.266
@@ -92,7 +92,7 @@
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
* @author Brian Stansberry
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Id: TreeCache.java,v 1.265 2006/11/10 20:32:52 msurtani Exp $
+ * @version $Id: TreeCache.java,v 1.266 2006/11/11 19:55:19 msurtani Exp $
* <p/>
* @see <a href="http://labs.jboss.com/portal/jbosscache/docs">JBossCache doc</a>
*/
@@ -2430,6 +2430,41 @@
/* --------------------- Callbacks -------------------------- */
+ /* ----- These are VERSIONED callbacks to facilitate JBCACHE-843. Also see docs/design/DataVersion.txt --- */
+
+ public void _put(GlobalTransaction tx, Fqn fqn, Map data, boolean create_undo_ops, DataVersion dv) throws CacheException
+ {
+ _put(tx, fqn, data, create_undo_ops, false, dv);
+ }
+
+ public void _put(GlobalTransaction tx, Fqn fqn, Map data, boolean create_undo_ops, boolean erase_contents, DataVersion dv) throws CacheException
+ {
+ _put(tx, fqn, data, create_undo_ops, erase_contents);
+ }
+
+ public Object _put(GlobalTransaction tx, Fqn fqn, Object key, Object value, boolean create_undo_ops, DataVersion dv) throws CacheException
+ {
+ return _put(tx, fqn, key, value, create_undo_ops);
+ }
+
+ public void _remove(GlobalTransaction tx, Fqn fqn, boolean create_undo_ops, DataVersion dv) throws CacheException
+ {
+ _remove(tx, fqn, create_undo_ops, true);
+ }
+
+ public Object _remove(GlobalTransaction tx, Fqn fqn, Object key, boolean create_undo_ops, DataVersion dv) throws CacheException
+ {
+ return _remove(tx, fqn, key, create_undo_ops);
+ }
+
+ public void _removeData(GlobalTransaction tx, Fqn fqn, boolean create_undo_ops, DataVersion dv) throws CacheException
+ {
+
+ _removeData(tx, fqn, create_undo_ops, true);
+ }
+
+ /* ----- End VERSIONED callbacks - Now for the NORMAL callbacks. -------- */
+
/**
* Internal put method.
* Does the real work. Needs to acquire locks if accessing nodes, depending on
More information about the jboss-cvs-commits
mailing list