Example usage for org.springframework.transaction.reactive TransactionSynchronizationUtils invokeAfterCompletion

List of usage examples for org.springframework.transaction.reactive TransactionSynchronizationUtils invokeAfterCompletion

Introduction

In this page you can find the example usage for org.springframework.transaction.reactive TransactionSynchronizationUtils invokeAfterCompletion.

Prototype

public static Mono<Void> invokeAfterCompletion(Collection<TransactionSynchronization> synchronizations,
        int completionStatus) 

Source Link

Document

Actually invoke the afterCompletion methods of the given Spring TransactionSynchronization objects.

Usage

From source file:org.springframework.transaction.reactive.AbstractReactiveTransactionManager.java

/**
 * Actually invoke the {@code afterCompletion} methods of the
 * given TransactionSynchronization objects.
 * <p>To be called by this abstract manager itself, or by special implementations
 * of the {@code registerAfterCompletionWithExistingTransaction} callback.
 * @param synchronizationManager the synchronization manager bound to the current transaction
 * @param synchronizations a List of TransactionSynchronization objects
 * @param completionStatus the completion status according to the
 * constants in the TransactionSynchronization interface
 * @see #registerAfterCompletionWithExistingTransaction(TransactionSynchronizationManager, Object, List)
 * @see TransactionSynchronization#STATUS_COMMITTED
 * @see TransactionSynchronization#STATUS_ROLLED_BACK
 * @see TransactionSynchronization#STATUS_UNKNOWN
 *///from   ww w.  j  a v  a2 s .c o m
private Mono<Void> invokeAfterCompletion(TransactionSynchronizationManager synchronizationManager,
        List<TransactionSynchronization> synchronizations, int completionStatus) {

    return TransactionSynchronizationUtils.invokeAfterCompletion(synchronizations, completionStatus);
}