[infinispan-commits] Infinispan SVN: r98 - trunk/core/src/main/java/org/infinispan/commands/write.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Wed Apr 8 08:59:54 EDT 2009


Author: galder.zamarreno at jboss.com
Date: 2009-04-08 08:59:54 -0400 (Wed, 08 Apr 2009)
New Revision: 98

Modified:
   trunk/core/src/main/java/org/infinispan/commands/write/RemoveCommand.java
Log:
[ISPN-2] (RemoveCommand.value not marshalled) Made RemoveCommand.value transient and added rationale javadoc.

Modified: trunk/core/src/main/java/org/infinispan/commands/write/RemoveCommand.java
===================================================================
--- trunk/core/src/main/java/org/infinispan/commands/write/RemoveCommand.java	2009-04-08 00:43:27 UTC (rev 97)
+++ trunk/core/src/main/java/org/infinispan/commands/write/RemoveCommand.java	2009-04-08 12:59:54 UTC (rev 98)
@@ -32,6 +32,7 @@
 
 /**
  * @author Mircea.Markus at jboss.com
+ * @author <a href="mailto:galder.zamarreno at jboss.com">Galder Zamarreno</a>
  * @since 4.0
  */
 public class RemoveCommand extends AbstractDataCommand implements DataWriteCommand {
@@ -41,7 +42,11 @@
    protected CacheNotifier notifier;
    boolean successful = true;
 
-   protected Object value;
+   /** When not null, value indicates that the entry should only be removed if 
+    * the key is mapped to this value. By the time the RemoveCommand needs to 
+    * be marshalled, the condition must have been true locally already, so 
+    * there's no need to marshall the value. **/
+   protected transient Object value;
 
    public RemoveCommand(Object key, Object value, CacheNotifier notifier) {
       super(key);




More information about the infinispan-commits mailing list