Package org.infinispan.context
Class NonTransactionalInvocationContextFactory
- java.lang.Object
-
- org.infinispan.context.AbstractInvocationContextFactory
-
- org.infinispan.context.NonTransactionalInvocationContextFactory
-
- All Implemented Interfaces:
InvocationContextFactory
@Deprecated public class NonTransactionalInvocationContextFactory extends AbstractInvocationContextFactory
Deprecated.Since 9.0, this class is going to be moved to an internal package.Invocation Context container to be used for non-transactional caches.- Author:
- Mircea Markus
-
-
Field Summary
-
Fields inherited from class org.infinispan.context.AbstractInvocationContextFactory
config
-
Fields inherited from interface org.infinispan.context.InvocationContextFactory
UNBOUNDED
-
-
Constructor Summary
Constructors Constructor Description NonTransactionalInvocationContextFactory()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InvocationContext
createInvocationContext(boolean isWrite, int keyCount)
Deprecated.If we are in a tx scope this will return anTxInvocationContext
.InvocationContext
createInvocationContext(Transaction tx, boolean implicitTransaction)
Deprecated.Creates an invocation contextorg.infinispan.context.impl.NonTxInvocationContext
createNonTxInvocationContext()
Deprecated.Will create anNonTxInvocationContext
with theAbstractInvocationContext.isOriginLocal()
returning true.org.infinispan.context.impl.NonTxInvocationContext
createRemoteInvocationContext(Address origin)
Deprecated.Returns anNonTxInvocationContext
whoseAbstractInvocationContext.isOriginLocal()
flag will be true.org.infinispan.context.impl.RemoteTxInvocationContext
createRemoteTxInvocationContext(org.infinispan.transaction.impl.RemoteTransaction tx, Address origin)
Deprecated.Returns anRemoteTxInvocationContext
.InvocationContext
createSingleKeyNonTxInvocationContext()
Deprecated.Will create anNonTxInvocationContext
with theAbstractInvocationContext.isOriginLocal()
returning true.org.infinispan.context.impl.LocalTxInvocationContext
createTxInvocationContext(org.infinispan.transaction.impl.LocalTransaction localTransaction)
Deprecated.Returns aLocalTxInvocationContext
.-
Methods inherited from class org.infinispan.context.AbstractInvocationContextFactory
createClearNonTxInvocationContext, createRemoteInvocationContextForCommand
-
-
-
-
Method Detail
-
createInvocationContext
public InvocationContext createInvocationContext(boolean isWrite, int keyCount)
Deprecated.Description copied from interface:InvocationContextFactory
If we are in a tx scope this will return anTxInvocationContext
. Otherwise it will return anNonTxInvocationContext
. Either way, both context will be marked as local, i.e.InvocationContext.isOriginLocal()
will be true.
-
createInvocationContext
public InvocationContext createInvocationContext(Transaction tx, boolean implicitTransaction)
Deprecated.Description copied from interface:InvocationContextFactory
Creates an invocation context
-
createNonTxInvocationContext
public org.infinispan.context.impl.NonTxInvocationContext createNonTxInvocationContext()
Deprecated.Description copied from interface:InvocationContextFactory
Will create anNonTxInvocationContext
with theAbstractInvocationContext.isOriginLocal()
returning true.
-
createSingleKeyNonTxInvocationContext
public InvocationContext createSingleKeyNonTxInvocationContext()
Deprecated.Description copied from interface:InvocationContextFactory
Will create anNonTxInvocationContext
with theAbstractInvocationContext.isOriginLocal()
returning true.
-
createRemoteInvocationContext
public org.infinispan.context.impl.NonTxInvocationContext createRemoteInvocationContext(Address origin)
Deprecated.Description copied from interface:InvocationContextFactory
Returns anNonTxInvocationContext
whoseAbstractInvocationContext.isOriginLocal()
flag will be true.- Parameters:
origin
- the origin of the command, or null if local
-
createTxInvocationContext
public org.infinispan.context.impl.LocalTxInvocationContext createTxInvocationContext(org.infinispan.transaction.impl.LocalTransaction localTransaction)
Deprecated.Description copied from interface:InvocationContextFactory
Returns aLocalTxInvocationContext
.
-
createRemoteTxInvocationContext
public org.infinispan.context.impl.RemoteTxInvocationContext createRemoteTxInvocationContext(org.infinispan.transaction.impl.RemoteTransaction tx, Address origin)
Deprecated.Description copied from interface:InvocationContextFactory
Returns anRemoteTxInvocationContext
.- Parameters:
tx
- remote transactionorigin
- the origin of the command, or null if local
-
-