Example usage for org.springframework.transaction.support TransactionSynchronization afterCommit

List of usage examples for org.springframework.transaction.support TransactionSynchronization afterCommit

Introduction

In this page you can find the example usage for org.springframework.transaction.support TransactionSynchronization afterCommit.

Prototype

default void afterCommit() 

Source Link

Document

Invoked after transaction commit.

Usage

From source file:org.springframework.transaction.support.TransactionSynchronizationUtils.java

/**
 * Actually invoke the {@code afterCommit} methods of the
 * given Spring TransactionSynchronization objects.
 * @param synchronizations List of TransactionSynchronization objects
 * @see TransactionSynchronization#afterCommit()
 *///from  w w w .ja v a  2  s .c o m
public static void invokeAfterCommit(@Nullable List<TransactionSynchronization> synchronizations) {
    if (synchronizations != null) {
        for (TransactionSynchronization synchronization : synchronizations) {
            synchronization.afterCommit();
        }
    }
}