public CompletableFuture<Void> commitAsync() {
        if (this.messagingFactory == null) {
            CompletableFuture<Void> exceptionCompletion = new CompletableFuture<>();
            exceptionCompletion.completeExceptionally(new ServiceBusException(false, "MessagingFactory should not be null"));
            return exceptionCompletion;
        }

        return this.messagingFactory.endTransactionAsync(this, true);
    }
public CompletableFuture < Void > commitAsync ( ) { if ( this . messagingFactory == null ) { CompletableFuture < Void > exceptionCompletion = new CompletableFuture < > ( ) ; exceptionCompletion . completeExceptionally ( new ServiceBusException ( false , "MessagingFactory should not be null" ) ) ; return exceptionCompletion ; } return this . messagingFactory . endTransactionAsync ( this , true ) ; }
Asynchronously commits the transaction
@return a CompletableFuture for the commit operation