Interface InvocationContextFactory


public interface InvocationContextFactory
Factory for InvocationContext objects.
Since:
7.0
Author:
Manik Surtani (manik AT infinispan DOT org), Mircea.Markus@jboss.com, Dan Berindei
  • Field Details

  • Method Details

    • createInvocationContext

      InvocationContext createInvocationContext(boolean isWrite, int keyCount)
      If we are in a tx scope this will return an TxInvocationContext. Otherwise it will return an NonTxInvocationContext. Either way, both context will be marked as local, i.e. InvocationContext.isOriginLocal() will be true.
    • createInvocationContext

      InvocationContext createInvocationContext(Transaction tx, boolean implicitTransaction)
      Creates an invocation context
    • createNonTxInvocationContext

      org.infinispan.context.impl.NonTxInvocationContext createNonTxInvocationContext()
      Will create an NonTxInvocationContext with the AbstractInvocationContext.isOriginLocal() returning true.
    • createSingleKeyNonTxInvocationContext

      InvocationContext createSingleKeyNonTxInvocationContext()
      Will create an NonTxInvocationContext with the AbstractInvocationContext.isOriginLocal() returning true.
    • createClearNonTxInvocationContext

      InvocationContext createClearNonTxInvocationContext()
      Will create an ClearInvocationContext with the AbstractInvocationContext.isOriginLocal() returning true.
    • createTxInvocationContext

      org.infinispan.context.impl.LocalTxInvocationContext createTxInvocationContext(org.infinispan.transaction.impl.LocalTransaction localTransaction)
      Returns a LocalTxInvocationContext.
    • createRemoteTxInvocationContext

      org.infinispan.context.impl.RemoteTxInvocationContext createRemoteTxInvocationContext(org.infinispan.transaction.impl.RemoteTransaction tx, org.infinispan.remoting.transport.Address origin)
      Returns an RemoteTxInvocationContext.
      Parameters:
      tx - remote transaction
      origin - the origin of the command, or null if local
    • createRemoteInvocationContext

      InvocationContext createRemoteInvocationContext(org.infinispan.remoting.transport.Address origin)
      Returns an NonTxInvocationContext whose AbstractInvocationContext.isOriginLocal() flag will be true.
      Parameters:
      origin - the origin of the command, or null if local
    • createRemoteInvocationContextForCommand

      InvocationContext createRemoteInvocationContextForCommand(org.infinispan.commands.VisitableCommand cacheCommand, org.infinispan.remoting.transport.Address origin)
      As createRemoteInvocationContext(org.infinispan.remoting.transport.Address), but returning the flags to the context from the Command if any Flag was set.
      Parameters:
      cacheCommand - the remote command
      origin - the origin of the command, or null if local