public class RemoteTxInvocationContext extends AbstractTxInvocationContext
AbstractInvocationContext.ContextFlagcontextFlags, flags| Constructor and Description |
|---|
RemoteTxInvocationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLockedKey(Object key)
Tracks the given key as locked by this invocation context.
|
void |
clearLookedUpEntries()
Clears the collection of entries looked up
|
RemoteTxInvocationContext |
clone()
Clones the invocation context.
|
boolean |
equals(Object o) |
AbstractCacheTransaction |
getCacheTransaction() |
GlobalTransaction |
getGlobalTransaction()
Returns the id of the transaction associated with the current call.
|
Set<Object> |
getLockedKeys()
Returns the set of keys that are locked for writing.
|
Object |
getLockOwner()
Returns the in behalf of which locks will be aquired.
|
Map<Object,CacheEntry> |
getLookedUpEntries()
Retrieves a map of entries looked up within the current scope.
|
List<WriteCommand> |
getModifications()
Returns all the modifications performed in the scope of the current transaction.
|
Transaction |
getTransaction()
Returns the tx associated with the current thread.
|
int |
hashCode() |
boolean |
isOriginLocal()
Returns true if the call was originated locally, false if it is the result of a remote rpc.
|
boolean |
isTransactionValid() |
CacheEntry |
lookupEntry(Object key)
Retrieves an entry from the collection of looked up entries in the current scope.
|
void |
putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries) |
void |
putLookedUpEntry(Object key,
CacheEntry e)
Puts an entry in the registry of looked up entries in the current scope.
|
void |
removeLookedUpEntry(Object key) |
void |
setRemoteTransaction(RemoteTransaction remoteTransaction) |
addAffectedKey, addAllAffectedKeys, clearLockedKeys, getAffectedKeys, hasModifications, isImplicitTransaction, isInTxScope, reset, setImplicitTransaction, setTransactiongetClassLoader, getFlags, getOrigin, hasFlag, hasLockedKey, isContextFlagSet, isFlagsUninitialized, isUseFutureReturnType, setClassLoader, setContextFlag, setContextFlag, setFlags, setFlags, setOrigin, setUseFutureReturnType, toString, unsetContextFlagfinalize, getClass, notify, notifyAll, wait, wait, waitgetClassLoader, getOrigin, hasLockedKey, isUseFutureReturnType, setClassLoader, setUseFutureReturnTypegetFlags, hasFlag, setFlags, setFlagspublic Transaction getTransaction()
TxInvocationContextInvocationContext.isOriginLocal(), as Transaction are not propagated from the node where tx was
started.getTransaction in interface TxInvocationContextgetTransaction in class AbstractTxInvocationContextpublic boolean isTransactionValid()
public Object getLockOwner()
InvocationContextpublic GlobalTransaction getGlobalTransaction()
TxInvocationContextpublic boolean isOriginLocal()
InvocationContextpublic List<WriteCommand> getModifications()
TxInvocationContextpublic void setRemoteTransaction(RemoteTransaction remoteTransaction)
public CacheEntry lookupEntry(Object key)
EntryLookupkey - key to look uppublic Map<Object,CacheEntry> getLookedUpEntries()
EntryLookuppublic void putLookedUpEntry(Object key, CacheEntry e)
EntryLookupkey - key to storee - entry to storepublic void removeLookedUpEntry(Object key)
public void clearLookedUpEntries()
EntryLookuppublic void putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)
public RemoteTxInvocationContext clone()
InvocationContextclone in interface InvocationContextclone in class AbstractInvocationContextpublic AbstractCacheTransaction getCacheTransaction()
getCacheTransaction in interface TxInvocationContextgetCacheTransaction in class AbstractTxInvocationContextpublic Set<Object> getLockedKeys()
InvocationContextpublic void addLockedKey(Object key)
InvocationContextCopyright © 2012 JBoss by Red Hat. All Rights Reserved.