Interface ClientTransactionManager

    • Method Detail

      • begin

        java.util.concurrent.CompletableFuture<Response> begin​(java.lang.String transactionId,
                                                               java.util.List<KeyAttribute> attributes)
        Initialize (possibly) new transaction. If the transaction already existed prior to this call, its current state is returned, otherwise the transaction is opened.
        Parameters:
        transactionId - ID of the transaction
        attributes - attributes affected by this transaction (both input and output)
        Returns:
        asynchronous response
      • updateTransaction

        java.util.concurrent.CompletableFuture<Response> updateTransaction​(java.lang.String transactionId,
                                                                           java.util.List<KeyAttribute> newAttributes)
        Update the transaction with additional attributes related to the transaction.
        Parameters:
        transactionId - ID of the transaction
        newAttributes - attributes to be added to the transaction
        Returns:
        asynchronous response
      • commit

        java.util.concurrent.CompletableFuture<Response> commit​(java.lang.String transactionId,
                                                                java.util.Collection<StreamElement> outputs)
        Commit the transaction with given output KeyAttributes being written.
        Parameters:
        transactionId - ID of the transaction
        outputs - elements to be written to the output
        Returns:
        asynchronous response
      • rollback

        java.util.concurrent.CompletableFuture<Response> rollback​(java.lang.String transactionId)
        Rollback transaction with given ID.
        Parameters:
        transactionId - ID of the transaction to rollback.
        Returns:
        asynchronous response
      • close

        void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • release

        void release​(java.lang.String transactionId)
        Release resources associated with given transaction.
        Parameters:
        transactionId - ID of the transaction