src/main/java/software/amazon/qldb/Session.java
CommitTransactionResult sendCommit(String txnId, ByteBuffer transactionDigest) {
        final CommitTransactionRequest request = CommitTransactionRequest.builder()
             .transactionId(txnId)
             .commitDigest(SdkBytes.fromByteBuffer(transactionDigest))
             .build();

        SendCommandResponse result = send(SendCommandRequest.builder().commitTransaction(request));
        return result.commitTransaction();
    }
/**
     * Send a commit request to QLDB, committing any active changes and closing any open results.
     *
     * @param txnId
     *              The unique ID of the transaction to commit.
     * @param transactionDigest
     *              The digest hash of the transaction to commit.
     *
     * @return The result of the commit transaction request.
     * @throws OccConflictException if an OCC conflict has been detected within the transaction.
     */
Send a commit request to QLDB, committing any active changes and closing any open results.
@param txnId
The unique ID of the transaction to commit.
@param transactionDigest
The digest hash of the transaction to commit.

@return The result of the commit transaction request.
@throws OccConflictException if an OCC conflict has been detected within the transaction.
Send a commit request to QLDB committing any active changes and closing any open results . @param txnId The unique ID of the transaction to commit . @param transactionDigest The digest hash of the transaction to commit . @return The result of the commit transaction request . @throws OccConflictException if an OCC conflict has been detected within the transaction .
CommitTransactionResult sendCommit(String txnId, ByteBuffer transactionDigest) {
        final CommitTransactionRequest request = CommitTransactionRequest.builder()
             .transactionId(txnId)
             .commitDigest(SdkBytes.fromByteBuffer(transactionDigest))
             .build();
        SendCommandResponse result = send(SendCommandRequest.builder().commitTransaction(request));
        return result.commitTransaction();
    }
CommitTransactionResult sendCommit ( String txnId , ByteBuffer transactionDigest ) { final CommitTransactionRequest request = CommitTransactionRequest . builder ( ) . transactionId ( txnId ) . commitDigest ( SdkBytes . fromByteBuffer ( transactionDigest ) ) . build ( ) ; SendCommandResponse result = send ( SendCommandRequest . builder ( ) . commitTransaction ( request ) ) ; return result . commitTransaction ( ) ; }
Send a commit request to QLDB, committing any active changes and closing any open results.
Send a commit request to QLDB committing any active changes and closing any open results .