org.infinispan.context
Interface InvocationContext

All Superinterfaces:
Cloneable, EntryLookup, FlagContainer
All Known Subinterfaces:
TxInvocationContext
All Known Implementing Classes:
AbstractInvocationContext, AbstractTxInvocationContext, InvocationContextFlagsOverride, LocalTxInvocationContext, NonTxInvocationContext, RemoteTxInvocationContext, TransactionalInvocationContextFlagsOverride

public interface InvocationContext
extends EntryLookup, FlagContainer, Cloneable

A context that contains information pertaining to a given invocation. These contexts typically have the lifespan of a single invocation.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org), Mircea.Markus@jboss.com

Method Summary
 InvocationContext clone()
           
 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.
 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.
 boolean isUseFutureReturnType()
           
 void setUseFutureReturnType(boolean useFutureReturnType)
           
 
Methods inherited from interface org.infinispan.context.EntryLookup
clearLookedUpEntries, getLookedUpEntries, hasLockedKey, lookupEntry, putLookedUpEntries, putLookedUpEntry, removeLookedUpEntry
 
Methods inherited from interface org.infinispan.context.FlagContainer
getFlags, hasFlag, reset, setFlags, setFlags
 

Method Detail

isOriginLocal

boolean isOriginLocal()
Returns true if the call was originated locally, false if it is the result of a remote rpc.


isInTxScope

boolean isInTxScope()
Returns true if this call is performed in the context of an transaction, false otherwise.


getLockOwner

Object getLockOwner()
Returns the in behalf of which locks will be aquired.


isUseFutureReturnType

boolean isUseFutureReturnType()

setUseFutureReturnType

void setUseFutureReturnType(boolean useFutureReturnType)

clone

InvocationContext clone()

getLockedKeys

Set<Object> getLockedKeys()
Returns the set of keys that are locked for writing.



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