Search in sources :

Example 1 with NestedBestEffortsDeliveryJobConfiguration

use of com.dangdang.ddframe.rdb.transaction.soft.api.config.NestedBestEffortsDeliveryJobConfiguration in project sharding-jdbc by dangdangdotcom.

the class Main method getSoftTransactionConfiguration.

private static SoftTransactionConfiguration getSoftTransactionConfiguration(final DataSource dataSource) {
    SoftTransactionConfiguration result = new SoftTransactionConfiguration(dataSource);
    if (useNestedJob) {
        result.setBestEffortsDeliveryJobConfiguration(Optional.of(new NestedBestEffortsDeliveryJobConfiguration()));
    }
    result.setTransactionLogDataSource(createTransactionLogDataSource());
    return result;
}
Also used : SoftTransactionConfiguration(com.dangdang.ddframe.rdb.transaction.soft.api.config.SoftTransactionConfiguration) NestedBestEffortsDeliveryJobConfiguration(com.dangdang.ddframe.rdb.transaction.soft.api.config.NestedBestEffortsDeliveryJobConfiguration)

Aggregations

NestedBestEffortsDeliveryJobConfiguration (com.dangdang.ddframe.rdb.transaction.soft.api.config.NestedBestEffortsDeliveryJobConfiguration)1 SoftTransactionConfiguration (com.dangdang.ddframe.rdb.transaction.soft.api.config.SoftTransactionConfiguration)1