@Deprecated public class TransactionalInvocationContextFactory extends AbstractInvocationContextFactory
config, interceptorChain, keyEq
UNBOUNDED
Constructor and Description |
---|
TransactionalInvocationContextFactory()
Deprecated.
|
createClearNonTxInvocationContext, createRemoteInvocationContextForCommand, init
public TransactionalInvocationContextFactory()
public void init(TransactionManager tm, TransactionTable transactionTable, Configuration config, BatchContainer batchContainer, AsyncInterceptorChain interceptorChain)
public NonTxInvocationContext createNonTxInvocationContext()
InvocationContextFactory
NonTxInvocationContext
with the AbstractInvocationContext.isOriginLocal()
returning true.public InvocationContext createSingleKeyNonTxInvocationContext()
InvocationContextFactory
NonTxInvocationContext
with the AbstractInvocationContext.isOriginLocal()
returning true.public InvocationContext createInvocationContext(boolean isWrite, int keyCount)
InvocationContextFactory
TxInvocationContext
. Otherwise it
will return an NonTxInvocationContext
. Either way, both context will be marked
as local, i.e. InvocationContext.isOriginLocal()
will be true.public InvocationContext createInvocationContext(Transaction tx, boolean implicitTransaction)
InvocationContextFactory
public LocalTxInvocationContext createTxInvocationContext(LocalTransaction localTransaction)
InvocationContextFactory
LocalTxInvocationContext
.public RemoteTxInvocationContext createRemoteTxInvocationContext(RemoteTransaction tx, Address origin)
InvocationContextFactory
RemoteTxInvocationContext
.tx
- remote transactionorigin
- the origin of the command, or null if localpublic NonTxInvocationContext createRemoteInvocationContext(Address origin)
InvocationContextFactory
NonTxInvocationContext
whose AbstractInvocationContext.isOriginLocal()
flag will be true.origin
- the origin of the command, or null if localprotected final NonTxInvocationContext newNonTxInvocationContext(Address origin)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.