Interface InvocationContextFactory

    • Method Detail

      • 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​(javax.transaction.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,
                                                                                              Address origin)
        Returns an RemoteTxInvocationContext.
        Parameters:
        tx - remote transaction
        origin - the origin of the command, or null if local
      • createRemoteInvocationContext

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