Package org.infinispan.context.impl
Class AbstractInvocationContextFactory
java.lang.Object
org.infinispan.context.impl.AbstractInvocationContextFactory
- All Implemented Interfaces:
InvocationContextFactory
- Direct Known Subclasses:
NonTransactionalInvocationContextFactory
,TransactionalInvocationContextFactory
public abstract class AbstractInvocationContextFactory
extends Object
implements InvocationContextFactory
Base class for InvocationContextFactory implementations.
- Author:
- Mircea Markus, Dan Berindei
-
Field Summary
Fields inherited from interface org.infinispan.context.InvocationContextFactory
UNBOUNDED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal InvocationContext
Will create anClearInvocationContext
with theAbstractInvocationContext.isOriginLocal()
returning true.createRemoteInvocationContextForCommand
(VisitableCommand cacheCommand, Address origin) AsInvocationContextFactory.createRemoteInvocationContext(org.infinispan.remoting.transport.Address)
, but returning the flags to the context from the Command if any Flag was set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.context.InvocationContextFactory
createInvocationContext, createInvocationContext, createNonTxInvocationContext, createRemoteInvocationContext, createRemoteTxInvocationContext, createSingleKeyNonTxInvocationContext, createTxInvocationContext
-
Field Details
-
config
-
-
Constructor Details
-
AbstractInvocationContextFactory
public AbstractInvocationContextFactory()
-
-
Method Details
-
createRemoteInvocationContextForCommand
public InvocationContext createRemoteInvocationContextForCommand(VisitableCommand cacheCommand, Address origin) Description copied from interface:InvocationContextFactory
AsInvocationContextFactory.createRemoteInvocationContext(org.infinispan.remoting.transport.Address)
, but returning the flags to the context from the Command if any Flag was set.- Specified by:
createRemoteInvocationContextForCommand
in interfaceInvocationContextFactory
- Parameters:
cacheCommand
- the remote commandorigin
- the origin of the command, or null if local
-
createClearNonTxInvocationContext
Description copied from interface:InvocationContextFactory
Will create anClearInvocationContext
with theAbstractInvocationContext.isOriginLocal()
returning true.- Specified by:
createClearNonTxInvocationContext
in interfaceInvocationContextFactory
-