org.infinispan.context
Interface InvocationContext

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

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()
           
 Object getLockOwner()
          Returns the in behalf of which locks will be aquired.
 boolean hasLockedEntries()
          Returns true if the context has any locked entries associated with it.
 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, isFlagsUninitialized, 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.


hasLockedEntries

boolean hasLockedEntries()
Returns true if the context has any locked entries associated with it.


isUseFutureReturnType

boolean isUseFutureReturnType()

setUseFutureReturnType

void setUseFutureReturnType(boolean useFutureReturnType)

clone

InvocationContext clone()

Google Analytics

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