|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.context.InvocationContextContainerImpl
public class InvocationContextContainerImpl
Default implementation for InvocationContextContainer
.
Constructor Summary | |
---|---|
InvocationContextContainerImpl()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvocationContextContainerImpl()
Method Detail |
---|
public void init(TransactionManager tm, TransactionTable transactionTable)
public InvocationContext createInvocationContext()
InvocationContextContainer
TxInvocationContext
. Otherwise it
will return an NonTxInvocationContext
. Either way, both context will be marked
as local, i.e. InvocationContext.isOriginLocal()
will be true. The context is also associated with the
current thread, so further calls to InvocationContextContainer.getInvocationContext()
will return same instace.
createInvocationContext
in interface InvocationContextContainer
public LocalTxInvocationContext createTxInvocationContext()
InvocationContextContainer
LocalTxInvocationContext
. The context is also associated with the
current thread, so further calls to InvocationContextContainer.getInvocationContext()
will return same instace.
createTxInvocationContext
in interface InvocationContextContainer
public RemoteTxInvocationContext createRemoteTxInvocationContext()
InvocationContextContainer
RemoteTxInvocationContext
. The context is also associated with the
current thread, so further calls to InvocationContextContainer.getInvocationContext()
will return same instace.
createRemoteTxInvocationContext
in interface InvocationContextContainer
public NonTxInvocationContext createNonTxInvocationContext()
InvocationContextContainer
NonTxInvocationContext
with the NonTxInvocationContext.isOriginLocal()
returning true.
createNonTxInvocationContext
in interface InvocationContextContainer
public NonTxInvocationContext createRemoteInvocationContext()
InvocationContextContainer
NonTxInvocationContext
whose NonTxInvocationContext.isOriginLocal()
flag will be true. The context is also
associated with the current thread, so further calls to InvocationContextContainer.getInvocationContext()
will return same instace.
createRemoteInvocationContext
in interface InvocationContextContainer
public InvocationContext getInvocationContext()
InvocationContextContainer
InvocationContext
that is currently associated with the calling thread. Important:
implementations of this metrhod is most likely expensive (ThreadLocal.get), it is recommanded to cache the result
of this method rather than repeting the call.
getInvocationContext
in interface InvocationContextContainer
public InvocationContext suspend()
InvocationContextContainer
suspend
in interface InvocationContextContainer
public void resume(InvocationContext ctxt)
InvocationContextContainer
InvocationContext
with the calling thread.
resume
in interface InvocationContextContainer
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |