org.jboss.cache.interceptors
Class OptimisticCreateIfNotExistsInterceptor
java.lang.Object
org.jboss.cache.commands.AbstractVisitor
org.jboss.cache.interceptors.base.CommandInterceptor
org.jboss.cache.interceptors.OptimisticInterceptor
org.jboss.cache.interceptors.OptimisticCreateIfNotExistsInterceptor
- All Implemented Interfaces:
- Visitor
Deprecated. will be removed along with optimistic and pessimistic locking.
@Deprecated
public class OptimisticCreateIfNotExistsInterceptor
- extends OptimisticInterceptor
Used to create new NodeSPI
instances in the main data structure and then copy it into the
TransactionWorkspace
as WorkspaceNode
s as needed. This is only invoked if nodes needed do not exist
in the underlying structure, they are added and the corresponding WorkspaceNode.isCreated()
would return true to denote that this node has been freshly created in the underlying structure.
- Author:
- Manik Surtani (manik AT jboss DOT org), Steve Woodcock (stevew@jofti.com)
Methods inherited from class org.jboss.cache.commands.AbstractVisitor |
visitClearDataCommand, visitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitOptimisticPrepareCommand, visitPrepareCommand, visitRemoveKeyCommand, visitRemoveNodeCommand, visitRollbackCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptimisticCreateIfNotExistsInterceptor
public OptimisticCreateIfNotExistsInterceptor()
- Deprecated.
visitPutDataMapCommand
public Object visitPutDataMapCommand(InvocationContext ctx,
PutDataMapCommand command)
throws Throwable
- Deprecated.
- Description copied from interface:
Visitor
- Visits a PutDataMapCommand.
- Specified by:
visitPutDataMapCommand
in interface Visitor
- Overrides:
visitPutDataMapCommand
in class AbstractVisitor
- Parameters:
ctx
- invocation contextcommand
- command to visit
- Returns:
- response from the visit
- Throws:
Throwable
- in the event of problems.
visitPutForExternalReadCommand
public Object visitPutForExternalReadCommand(InvocationContext ctx,
PutForExternalReadCommand command)
throws Throwable
- Deprecated.
- Description copied from interface:
Visitor
- Visits a PutForExternalReadCommand.
- Specified by:
visitPutForExternalReadCommand
in interface Visitor
- Overrides:
visitPutForExternalReadCommand
in class AbstractVisitor
- Parameters:
ctx
- invocation contextcommand
- command to visit
- Returns:
- response from the visit
- Throws:
Throwable
- in the event of problems.
visitPutKeyValueCommand
public Object visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
- Deprecated.
- Description copied from interface:
Visitor
- Visits a PutKeyValueCommand.
- Specified by:
visitPutKeyValueCommand
in interface Visitor
- Overrides:
visitPutKeyValueCommand
in class AbstractVisitor
- Parameters:
ctx
- invocation contextcommand
- command to visit
- Returns:
- response from the visit
- Throws:
Throwable
- in the event of problems.
visitMoveCommand
public Object visitMoveCommand(InvocationContext ctx,
MoveCommand command)
throws Throwable
- Deprecated.
- Description copied from interface:
Visitor
- Visits a MoveCommand.
- Specified by:
visitMoveCommand
in interface Visitor
- Overrides:
visitMoveCommand
in class AbstractVisitor
- Parameters:
ctx
- invocation contextcommand
- command to visit
- Returns:
- response from the visit
- Throws:
Throwable
- in the event of problems.
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.