org.jboss.cache.invocation
Class LegacyInvocationContext

java.lang.Object
  extended by org.jboss.cache.InvocationContext
      extended by org.jboss.cache.invocation.LegacyInvocationContext

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

@Deprecated
public class LegacyInvocationContext
extends InvocationContext

This is to provide backward compatibility with legacy locking schemes.

Since:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)

Field Summary
 
Fields inherited from class org.jboss.cache.InvocationContext
invocationLocks, transactionContext
 
Constructor Summary
LegacyInvocationContext(DataContainer container)
          Deprecated.  
 
Method Summary
 void clearLookedUpNodes()
          Deprecated. Clears the registry of looked up nodes.
 InvocationContext copy()
          Deprecated. This is a "copy-factory-method" that should be used whenever a clone of this class is needed.
 Map<Fqn,NodeSPI> getLookedUpNodes()
          Deprecated. Retrieves a map of nodes looked up within the current invocation's scope.
 NodeSPI lookUpNode(Fqn fqn)
          Deprecated. Retrieves a node from the registry of looked up nodes in the current scope.
 void putLookedUpNode(Fqn f, NodeSPI n)
          Deprecated. Puts an entry in the registry of looked up nodes in the current scope.
 void putLookedUpNodes(Map<Fqn,NodeSPI> lookedUpNodes)
          Deprecated. Adds a map of looked up nodes to the current map of looked up nodes
 
Methods inherited from class org.jboss.cache.InvocationContext
addAllLocks, addFqnLoaded, addLock, clearLocks, doCopy, equals, getCommand, getFqnsLoaded, getGlobalTransaction, getLockAcquisitionTimeout, getLocks, getMethodCall, getOptionOverrides, getTransaction, getTransactionContext, hashCode, hasLock, isLocalRollbackOnly, isLockingSuppressed, isOptionsUninitialised, isOriginLocal, isValidTransaction, removeLock, reset, setCommand, setFqnsLoaded, setGlobalTransaction, setLocalRollbackOnly, setMethodCall, setOptionOverrides, setOriginLocal, setState, setTransaction, setTransactionContext, throwIfNeeded, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LegacyInvocationContext

public LegacyInvocationContext(DataContainer container)
Deprecated. 
Method Detail

lookUpNode

public NodeSPI lookUpNode(Fqn fqn)
Deprecated. 
Description copied from class: InvocationContext
Retrieves a node from the registry of looked up nodes in the current scope.

Specified by:
lookUpNode in class InvocationContext
Parameters:
fqn - fqn to look up
Returns:
a node, or null if it cannot be found.

putLookedUpNode

public void putLookedUpNode(Fqn f,
                            NodeSPI n)
Deprecated. 
Description copied from class: InvocationContext
Puts an entry in the registry of looked up nodes in the current scope.

Specified by:
putLookedUpNode in class InvocationContext
Parameters:
f - fqn to add
n - node to add

putLookedUpNodes

public void putLookedUpNodes(Map<Fqn,NodeSPI> lookedUpNodes)
Deprecated. 
Description copied from class: InvocationContext
Adds a map of looked up nodes to the current map of looked up nodes

Specified by:
putLookedUpNodes in class InvocationContext
Parameters:
lookedUpNodes - looked up nodes to add

clearLookedUpNodes

public void clearLookedUpNodes()
Deprecated. 
Description copied from class: InvocationContext
Clears the registry of looked up nodes.

Specified by:
clearLookedUpNodes in class InvocationContext

getLookedUpNodes

public Map<Fqn,NodeSPI> getLookedUpNodes()
Deprecated. 
Description copied from class: InvocationContext
Retrieves a map of nodes looked up within the current invocation's scope.

Specified by:
getLookedUpNodes in class InvocationContext
Returns:
a map of looked up nodes.

copy

public InvocationContext copy()
Deprecated. 
Description copied from class: InvocationContext
This is a "copy-factory-method" that should be used whenever a clone of this class is needed. The resulting instance is equal() to, but not ==, to the InvocationContext invoked on. Note that this is a shallow copy with the exception of the Option object, which is deep, as well as any collections held on the context such as locks. Note that the reference to a TransactionContext, if any, is maintained.

Specified by:
copy in class InvocationContext
Returns:
a new InvocationContext


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