User: slaboure
Date: 01/12/29 08:09:41
Modified: src/main/org/jboss/ha/framework/interfaces
DistributedState.java
Log:
- possibility to know if a modification has been done locally or initiated from
another node
- remove now returns the old value
Revision Changes Path
1.5 +4 -4
jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java
Index: DistributedState.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/interfaces/DistributedState.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- DistributedState.java 2001/11/26 14:58:26 1.4
+++ DistributedState.java 2001/12/29 16:09:41 1.5
@@ -27,7 +27,7 @@
* modified/removed/added in a particular category.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Sacha Labourey</a>.
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*
* <p><b>Revisions:</b><br>
* @see HAPartition
@@ -47,7 +47,7 @@
* @param key The key that has been added or its value modified
* @param value The new value of the key
*/
- public void valueHasChanged (String category, String key, Serializable value);
+ public void valueHasChanged (String category, String key, Serializable value,
boolean locallyModified);
/**
* Called whenever a key has been removed from a category the called object
had
* subscribed in.
@@ -55,7 +55,7 @@
* @param key The key that has been removed
* @param previousContent The previous content of the key that has been
removed
*/
- public void keyHasBeenRemoved (String category, String key, Serializable
previousContent);
+ public void keyHasBeenRemoved (String category, String key, Serializable
previousContent, boolean locallyModified);
}
/**
@@ -116,5 +116,5 @@
* @param key Key to be removed
* @throws Exception if a network exception occurs while removing the entry.
*/
- public void remove (String category, String key) throws Exception;
+ public Serializable remove (String category, String key) throws Exception;
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development