Search in sources :

Example 1 with IndependentProcessor

use of org.dbflute.helper.function.IndependentProcessor in project lastaflute by lastaflute.

the class LazyUserTransaction method beginRealTransactionLazily.

public static void beginRealTransactionLazily() {
    final String lazyKey = generateLazyProcessListKey();
    final List<IndependentProcessor> lazyList = ThreadCacheContext.getObject(lazyKey);
    if (lazyList != null) {
        markLazyRealBegun();
        for (IndependentProcessor processor : lazyList) {
            // with logging
            processor.process();
        }
        ThreadCacheContext.removeObject(lazyKey);
    }
}
Also used : IndependentProcessor(org.dbflute.helper.function.IndependentProcessor)

Aggregations

IndependentProcessor (org.dbflute.helper.function.IndependentProcessor)1