|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.context.impl.AbstractInvocationContext
org.infinispan.context.impl.AbstractTxInvocationContext
org.infinispan.context.impl.RemoteTxInvocationContext
public class RemoteTxInvocationContext
Context to be used for transaction that originated remotelly.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
AbstractInvocationContext.ContextFlag |
Field Summary |
---|
Fields inherited from class org.infinispan.context.impl.AbstractTxInvocationContext |
---|
affectedKeys |
Fields inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
contextFlags, flags |
Constructor Summary | |
---|---|
RemoteTxInvocationContext()
|
Method Summary | |
---|---|
void |
clearLookedUpEntries()
Clears the collection of entries looked up |
RemoteTxInvocationContext |
clone()
|
boolean |
equals(Object o)
|
GlobalTransaction |
getGlobalTransaction()
Returns the id of the transaction assoctiated with the current call. |
Object |
getLockOwner()
Returns the in behalf of which locks will be aquired. |
BidirectionalMap<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 |
getRunningTransaction()
Returns the tx associated with the current thread. |
int |
hashCode()
|
boolean |
isInTxScope()
Returns true if this call is performed in the context of an transaction, false otherwise. |
boolean |
isOriginLocal()
Returns true if the call was originated locally, false if it is the result of a remote rpc. |
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)
|
Methods inherited from class org.infinispan.context.impl.AbstractTxInvocationContext |
---|
addAffectedKeys, assertTransactionValid, getAffectedKeys, hasModifications, isActive, isPreparing, isValid, isValidRunningTx |
Methods inherited from class org.infinispan.context.impl.AbstractInvocationContext |
---|
getFlags, hasFlag, hasLockedEntries, hasLockedKey, isContextFlagSet, isFlagsUninitialized, isUseFutureReturnType, reset, setContextFlag, setContextFlag, setFlags, setFlags, setUseFutureReturnType, toString, unsetContextFlag |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.infinispan.context.InvocationContext |
---|
hasLockedEntries, isUseFutureReturnType, setUseFutureReturnType |
Methods inherited from interface org.infinispan.context.EntryLookup |
---|
hasLockedKey |
Methods inherited from interface org.infinispan.context.FlagContainer |
---|
getFlags, hasFlag, isFlagsUninitialized, reset, setFlags, setFlags |
Constructor Detail |
---|
public RemoteTxInvocationContext()
Method Detail |
---|
public Transaction getRunningTransaction()
TxInvocationContext
InvocationContext.isOriginLocal()
, as Transaction
are not propagated from the node where tx was
started.
public Object getLockOwner()
InvocationContext
public GlobalTransaction getGlobalTransaction()
TxInvocationContext
public boolean isInTxScope()
InvocationContext
public boolean isOriginLocal()
InvocationContext
public List<WriteCommand> getModifications()
TxInvocationContext
public void setRemoteTransaction(RemoteTransaction remoteTransaction)
public CacheEntry lookupEntry(Object key)
EntryLookup
key
- key to look up
public BidirectionalMap<Object,CacheEntry> getLookedUpEntries()
EntryLookup
public void putLookedUpEntry(Object key, CacheEntry e)
EntryLookup
key
- key to storee
- entry to storepublic void removeLookedUpEntry(Object key)
public void clearLookedUpEntries()
EntryLookup
public void putLookedUpEntries(Map<Object,CacheEntry> lookedUpEntries)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public RemoteTxInvocationContext clone()
clone
in interface InvocationContext
clone
in class AbstractTxInvocationContext
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |