org.jboss.cache.interceptors
Class OptimisticInterceptor

java.lang.Object
  extended by org.jboss.cache.commands.AbstractVisitor
      extended by org.jboss.cache.interceptors.base.CommandInterceptor
          extended by org.jboss.cache.interceptors.OptimisticInterceptor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
OptimisticCreateIfNotExistsInterceptor, OptimisticLockingInterceptor, OptimisticNodeInterceptor, OptimisticValidatorInterceptor

Deprecated. will be removed along with optimistic and pessimistic locking.

@Deprecated
public abstract class OptimisticInterceptor
extends CommandInterceptor

Abstract interceptor for optimistic locking

Author:
Manik Surtani (manik AT jboss DOT org)

Field Summary
protected  LockManager lockManager
          Deprecated.  
protected  TransactionManager txManager
          Deprecated.  
protected  TransactionTable txTable
          Deprecated.  
 
Fields inherited from class org.jboss.cache.interceptors.base.CommandInterceptor
configuration, log, trace
 
Constructor Summary
OptimisticInterceptor()
          Deprecated.  
 
Method Summary
protected  GlobalTransaction getGlobalTransaction(InvocationContext ctx)
          Deprecated.  
protected  TransactionWorkspace getTransactionWorkspace(InvocationContext ctx)
          Deprecated.  
protected  void greedyGetFqns(List<Fqn> list, NodeSPI<?,?> n, Fqn newBase)
          Deprecated. Adds the Fqn of the node as well as all children and childrens children to the list.
protected  WorkspaceNode lockAndCreateWorkspaceNode(NodeFactory<?,?> nodeFactory, NodeSPI node, TransactionWorkspace<?,?> workspace, GlobalTransaction gtx, long timeout)
          Deprecated.  
protected  void undeleteWorkspaceNode(WorkspaceNode nodeToUndelete, TransactionWorkspace workspace)
          Deprecated.  
protected  void undeleteWorkspaceNode(WorkspaceNode nodeToUndelete, WorkspaceNode parent)
          Deprecated. Undeletes a node that already exists in the workspace, by setting appropriate flags and re-adding to parent's child map.
 
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.jboss.cache.commands.AbstractVisitor
visitClearDataCommand, visitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGetChildrenNamesCommand, visitGetDataMapCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand, visitOptimisticPrepareCommand, visitPrepareCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand, visitRollbackCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txManager

protected TransactionManager txManager
Deprecated. 

txTable

protected TransactionTable txTable
Deprecated. 

lockManager

protected LockManager lockManager
Deprecated. 
Constructor Detail

OptimisticInterceptor

public OptimisticInterceptor()
Deprecated. 
Method Detail

getTransactionWorkspace

protected TransactionWorkspace getTransactionWorkspace(InvocationContext ctx)
                                                throws CacheException
Deprecated. 
Throws:
CacheException

greedyGetFqns

protected void greedyGetFqns(List<Fqn> list,
                             NodeSPI<?,?> n,
                             Fqn newBase)
Deprecated. 
Adds the Fqn of the node as well as all children and childrens children to the list.


getGlobalTransaction

protected GlobalTransaction getGlobalTransaction(InvocationContext ctx)
                                          throws CacheException
Deprecated. 
Returns:
the GlobalTransaction, extracted from the current InvocationContext.
Throws:
CacheException - if the GlobalTransaction or Transaction associated with the InvocationContext is null.

undeleteWorkspaceNode

protected void undeleteWorkspaceNode(WorkspaceNode nodeToUndelete,
                                     TransactionWorkspace workspace)
Deprecated. 

undeleteWorkspaceNode

protected void undeleteWorkspaceNode(WorkspaceNode nodeToUndelete,
                                     WorkspaceNode parent)
Deprecated. 
Undeletes a node that already exists in the workspace, by setting appropriate flags and re-adding to parent's child map.

Parameters:
nodeToUndelete - WorkspaceNode to undelete
parent - parent of node to undelete

lockAndCreateWorkspaceNode

protected WorkspaceNode lockAndCreateWorkspaceNode(NodeFactory<?,?> nodeFactory,
                                                   NodeSPI node,
                                                   TransactionWorkspace<?,?> workspace,
                                                   GlobalTransaction gtx,
                                                   long timeout)
Deprecated. 


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.