@Deprecated public interface InvocationContextFactory
InvocationContext
objects.Modifier and Type | Field and Description |
---|---|
static int |
UNBOUNDED
Deprecated.
To be used when building InvocationContext with
createInvocationContext(boolean, int) as an indicator
of the fact that the size of the keys to be accessed in the context is not known. |
static final int UNBOUNDED
createInvocationContext(boolean, int)
as an indicator
of the fact that the size of the keys to be accessed in the context is not known.InvocationContext createInvocationContext(boolean isWrite, int keyCount)
TxInvocationContext
. Otherwise it
will return an NonTxInvocationContext
. Either way, both context will be marked
as local, i.e. InvocationContext.isOriginLocal()
will be true.InvocationContext createInvocationContext(Transaction tx, boolean implicitTransaction)
NonTxInvocationContext createNonTxInvocationContext()
NonTxInvocationContext
with the AbstractInvocationContext.isOriginLocal()
returning true.InvocationContext createSingleKeyNonTxInvocationContext()
NonTxInvocationContext
with the AbstractInvocationContext.isOriginLocal()
returning true.InvocationContext createClearNonTxInvocationContext()
ClearInvocationContext
with the AbstractInvocationContext.isOriginLocal()
returning true.LocalTxInvocationContext createTxInvocationContext(LocalTransaction localTransaction)
LocalTxInvocationContext
.RemoteTxInvocationContext createRemoteTxInvocationContext(RemoteTransaction tx, Address origin)
RemoteTxInvocationContext
.tx
- remote transactionorigin
- the origin of the command, or null if localInvocationContext createRemoteInvocationContext(Address origin)
NonTxInvocationContext
whose AbstractInvocationContext.isOriginLocal()
flag will be true.origin
- the origin of the command, or null if localInvocationContext createRemoteInvocationContextForCommand(VisitableCommand cacheCommand, Address origin)
createRemoteInvocationContext(org.infinispan.remoting.transport.Address)
,
but returning the flags to the context from the Command if any Flag was set.cacheCommand
- the remote commandorigin
- the origin of the command, or null if localCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.