public CompletableFuture < Void > rollbackAsync ( ) { 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 , false ) ; }
Asynchronously rollback the transaction .