Interface TransactionResult

    • Method Detail

      • discarded

        boolean discarded()
        Checks if the transaction was discarded (rolled back)
        Returns:
        true if the transaction batch was discarded.
      • size

        int size()
        Returns the number of responses.
        Returns:
        the number of responses
      • get

        <T> T get​(int index)
        Returns the response at the specified position in this TransactionResult. It contains the result of the commands executed at the same position in the transaction.
        Type Parameters:
        T - the expected type
        Parameters:
        index - index of the element to return
        Returns:
        the element at the specified position in this TransactionResult