Author: manik.surtani(a)jboss.com
Date: 2008-08-07 11:54:03 -0400 (Thu, 07 Aug 2008)
New Revision: 6538
Modified:
core/trunk/src/main/java/org/jboss/cache/commands/Visitor.java
core/trunk/src/main/java/org/jboss/cache/interceptors/MVCCLockingInterceptor.java
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PrePostProcessingCommandInterceptor.java
Log:
Deprecated CreateNodeCommand visitors
Modified: core/trunk/src/main/java/org/jboss/cache/commands/Visitor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/commands/Visitor.java 2008-08-07 12:04:30 UTC
(rev 6537)
+++ core/trunk/src/main/java/org/jboss/cache/commands/Visitor.java 2008-08-07 15:54:03 UTC
(rev 6538)
@@ -1,6 +1,7 @@
package org.jboss.cache.commands;
import org.jboss.cache.commands.legacy.write.CreateNodeCommand;
+import org.jboss.cache.commands.local.BatchBoundaryCommand;
import org.jboss.cache.commands.read.ExistsCommand;
import org.jboss.cache.commands.read.GetChildrenNamesCommand;
import org.jboss.cache.commands.read.GetDataMapCommand;
@@ -242,6 +243,8 @@
* @param command command to visit
* @return response from the visit
* @throws Throwable in the event of problems.
+ * @deprecated in 3.0. Will be removed once optimistic and pessimistic locking is
removed.
*/
+ @Deprecated
Object visitCreateNodeCommand(InvocationContext ctx, CreateNodeCommand command) throws
Throwable;
}
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/MVCCLockingInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/MVCCLockingInterceptor.java 2008-08-07
12:04:30 UTC (rev 6537)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/MVCCLockingInterceptor.java 2008-08-07
15:54:03 UTC (rev 6538)
@@ -5,7 +5,6 @@
import org.jboss.cache.InternalNode;
import org.jboss.cache.NodeSPI;
import org.jboss.cache.commands.VisitableCommand;
-import org.jboss.cache.commands.legacy.write.CreateNodeCommand;
import org.jboss.cache.commands.read.ExistsCommand;
import org.jboss.cache.commands.read.GetChildrenNamesCommand;
import org.jboss.cache.commands.read.GetDataMapCommand;
@@ -265,12 +264,6 @@
}
@Override
- public Object handleCreateNodeCommand(InvocationContext ctx, CreateNodeCommand
command) throws Throwable
- {
- throw new UnsupportedOperationException("Unsupported in MVCC!");
- }
-
- @Override
public Object handleRollbackCommand(InvocationContext ctx, RollbackCommand command)
throws Throwable
{
Object retval = null;
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PrePostProcessingCommandInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PrePostProcessingCommandInterceptor.java 2008-08-07
12:04:30 UTC (rev 6537)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/base/PrePostProcessingCommandInterceptor.java 2008-08-07
15:54:03 UTC (rev 6538)
@@ -128,6 +128,10 @@
}
}
+ /**
+ * @deprecated in 3.0. Will be removed when Optimistic and Pessimistic locking is
removed.
+ */
+ @Deprecated
protected Object handleCreateNodeCommand(InvocationContext ctx, CreateNodeCommand
command) throws Throwable
{
return handleDefault(ctx, command);
Show replies by date